Rover: Fix the yellow binking lights after the AP_Notify updates

This commit is contained in:
Marco Walther 2015-03-01 21:57:36 -08:00 committed by Andrew Tridgell
parent 8629637cec
commit 339dac18f7
1 changed files with 3 additions and 3 deletions

View File

@ -537,17 +537,17 @@ void setup() {
// load the default values of variables listed in var_info[] // load the default values of variables listed in var_info[]
AP_Param::setup_sketch_defaults(); AP_Param::setup_sketch_defaults();
notify.init(false);
// rover does not use arming nor pre-arm checks // rover does not use arming nor pre-arm checks
AP_Notify::flags.armed = true; AP_Notify::flags.armed = true;
AP_Notify::flags.pre_arm_check = true; AP_Notify::flags.pre_arm_check = true;
AP_Notify::flags.pre_arm_gps_check = true; AP_Notify::flags.pre_arm_gps_check = true;
AP_Notify::flags.failsafe_battery = false; AP_Notify::flags.failsafe_battery = false;
notify.init(false);
rssi_analog_source = hal.analogin->channel(ANALOG_INPUT_NONE); rssi_analog_source = hal.analogin->channel(ANALOG_INPUT_NONE);
init_ardupilot(); init_ardupilot();
// initialise the main loop scheduler // initialise the main loop scheduler
scheduler.init(&scheduler_tasks[0], sizeof(scheduler_tasks)/sizeof(scheduler_tasks[0])); scheduler.init(&scheduler_tasks[0], sizeof(scheduler_tasks)/sizeof(scheduler_tasks[0]));