mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-10 09:58:28 -04:00
Copter: call BoardConfig.init_safety() at end of startup
this fixes a bug where motors can start on soft reboot
This commit is contained in:
parent
c5d17a9d92
commit
10b89db498
@ -316,6 +316,9 @@ void Copter::init_ardupilot()
|
|||||||
enable_motor_output();
|
enable_motor_output();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// disable safety if requested
|
||||||
|
BoardConfig.init_safety();
|
||||||
|
|
||||||
cliSerial->printf("\nReady to FLY ");
|
cliSerial->printf("\nReady to FLY ");
|
||||||
|
|
||||||
// flag that initialisation has completed
|
// flag that initialisation has completed
|
||||||
|
Loading…
Reference in New Issue
Block a user