Plane: prevent arming tone on startup

This commit is contained in:
Andrew Tridgell 2013-09-18 10:56:06 +10:00
parent e0d44ed31a
commit 150e7a3f16

View File

@ -738,11 +738,12 @@ void setup() {
AP_Param::setup_sketch_defaults(); AP_Param::setup_sketch_defaults();
// arduplane does not use arming nor pre-arm checks // arduplane does not use arming nor pre-arm checks
notify.init();
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.failsafe_battery = false; AP_Notify::flags.failsafe_battery = false;
notify.init();
rssi_analog_source = hal.analogin->channel(ANALOG_INPUT_NONE); rssi_analog_source = hal.analogin->channel(ANALOG_INPUT_NONE);
vcc_pin = hal.analogin->channel(ANALOG_INPUT_BOARD_VCC); vcc_pin = hal.analogin->channel(ANALOG_INPUT_BOARD_VCC);