In function 'void update_throttle()':
error: 'control_mode' was not declared in this scope
#if THROTTLE_OUT == 0
servo_throttle = 0;
#else
if (control_mode > STABILIZE){
servo_throttle = constrain(servo_throttle, 0, THROTTLE_MAX);
}
#endif
Is there a corrected version, or can anyone offer a correction I can edit in?
You need to be a member of diydrones to add comments!
Replies
Jason
Under the line #include "easystar_25.h" in Ardupilot_25_throttle_test.pde, try adding the 2 lines:
#include "defines.h"
byte control_mode =MANUAL;
Save and close. Copy the defines.h file from the ArduPilot_2_5 sketch folder into the throttle_test sketch folder.
Reopen the throttle_test sketch and it should now compile (but I can't say for sure it will work as intended).
Best of luck!