I'm trying to set RSSI up for tuning on MinimOSD. I went to the guide and it states:
"Go to APM_Config.h and add: "#define RECEIVER_RSSI_PIN 6"
Note that 6 is the analog pin number where you have RSSI port connected. I have changed it to 6 as I use analog port 6. If you use a different port, replace 6 with your analog port number.
If you use APM2 or 2.5 than add: "#define CONFIG_APM_HARDWARE APM_HARDWARE_APM2" in APM_Config.h
After this you can compile and upload."
I then installed the Arduino Program, created a sketchbook, then copied my current "Arducopter" and "Libraries" folders to my Arduino Sketchbook.
I opened arducopter.pde and added these two lines to APM_Config.h
#define RECEIVER_RSSI_PIN 6
#define CONFIG_APM_HARDWARE APM_HARDWARE_APM2
The problem is when I try to compile I get a ton of errors at the bottom and it won't compile. Here are some of them:
Attitude:506: error: 'class Parameters' has no member named 'radio_tuning'
Attitude.pde: In function 'void reset_nav_params()':
Attitude:546: error: 'class Parameters' has no member named 'waypoint_radius'
Attitude.pde: In function 'void reset_I_all()':
Attitude:561: error: 'class Parameters' has no member named 'pi_stabilize_yaw'
Attitude.pde: In function 'void reset_rate_I()':
Attitude:566: error: 'class Parameters' has no member named 'pid_rate_roll'
Attitude:567: error: 'class Parameters' has no member named 'pid_rate_pitch'
Attitude:568: error: 'class Parameters' has no member named 'pid_rate_yaw'
Attitude.pde: In function 'void reset_optflow_I()':
Attitude:573: error: 'class Parameters' has no member named 'pid_optflow_roll'
Attitude:574: error: 'class Parameters' has no member named 'pid_optflow_pitch'
Attitude.pde: In function 'void reset_wind_I()':
Attitude:584: error: 'class Parameters' has no member named 'pi_loiter_lat'
Attitude:585: error: 'class Parameters' has no member named 'pi_loiter_lon'
Attitude:587: error: 'class Parameters' has no member named 'pid_loiter_rate_lat'
Attitude:588: error: 'class Parameters' has no member named 'pid_loiter_rate_lon'
Attitude:590: error: 'class Parameters' has no member named 'pid_nav_lat'
Attitude:591: error: 'class Parameters' has no member named 'pid_nav_lon'
Attitude.pde: In function 'void reset_throttle_I()':
Attitude:597: error: 'class Parameters' has no member named 'pi_alt_hold'
Attitude:598: error: 'class Parameters' has no member named 'pid_throttle'
Attitude.pde: In function 'void reset_stability_I()':
Attitude:605: error: 'class Parameters' has no member named 'pi_stabilize_roll'
Attitude:606: error: 'class Parameters' has no member named 'pi_stabilize_pitch'
Attitude.pde: In function 'int32_t get_of_roll(int32_t)':
Attitude:781: error: 'optflow' was not declared in this scope
Attitude:789: error: 'class Parameters' has no member named 'pid_optflow_roll'
Attitude:790: error: 'class Parameters' has no member named 'pid_optflow_roll'
Attitude:791: error: 'class Parameters' has no member named 'pid_optflow_roll'
Attitude:794: error: 'class Parameters' has no member named 'pid_optflow_roll'
Attitude:806: error: 'class Parameters' has no member named 'log_bitmask'
Attitude:806: error: 'class Parameters' has no member named 'radio_tuning'
Attitude:806: error: 'class Parameters' has no member named 'radio_tuning'
Attitude:806: error: 'class Parameters' has no member named 'radio_tuning'
Attitude.pde: In function 'int32_t get_of_pitch(int32_t)':
Attitude:835: error: 'optflow' was not declared in this scope
Attitude:843: error: 'class Parameters' has no member named 'pid_optflow_pitch'
Attitude:844: error: 'class Parameters' has no member named 'pid_optflow_pitch'
Attitude:845: error: 'class Parameters' has no member named 'pid_optflow_pitch'
Attitude:849: error: 'class Parameters' has no member named 'pid_optflow_pitch'
Attitude:861: error: 'class Parameters' has no member named 'log_bitmask'
Attitude:861: error: 'class Parameters' has no member named 'radio_tuning'
Attitude:861: error: 'class Parameters' has no member named 'radio_tuning'
Attitude:861: error: 'class Parameters' has no member named 'radio_tuning'
GCS_Mavlink.pde: At global scope:
GCS_Mavlink:9: error: 'mavlink_statustext_t' does not name a type
GCS_Mavlink:19: error: expected ',' or '...' before '*' token
GCS_Mavlink:19: error: ISO C++ forbids declaration of 'prog_char_t' with no type
GCS_Mavlink:31: error: variable or field 'send_heartbeat' declared void
GCS_Mavlink:31: error: 'mavlink_channel_t' was not declared in this scope
I'm using APM2.5 with Arducopter 2.8.1
Connected to APM using USB cable on com port 6.
Have Arduino Mega2560 selected for board.
Hope someone can help me out here,
Thanks
Replies
Looks like you haven't set up Arduino right (probably libraries in the wrong place). Please follow the directions here.