mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-24 09:38:29 -04:00
Rover: prevent arming tone on startup
This commit is contained in:
parent
0d6b847966
commit
e0d44ed31a
@ -585,10 +585,12 @@ 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();
|
||||||
|
|
||||||
// arduplane does not use arming nor pre-arm checks
|
// rover 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;
|
||||||
|
|
||||||
|
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);
|
||||||
|
Loading…
Reference in New Issue
Block a user