mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-20 15:48:29 -04:00
Sub: always neutralize inputs during pilot input failsafe
This commit is contained in:
parent
fb2e87032d
commit
b7e367e21d
@ -216,8 +216,9 @@ void Sub::failsafe_pilot_input_check()
|
|||||||
Log_Write_Error(ERROR_SUBSYSTEM_INPUT, ERROR_CODE_FAILSAFE_OCCURRED);
|
Log_Write_Error(ERROR_SUBSYSTEM_INPUT, ERROR_CODE_FAILSAFE_OCCURRED);
|
||||||
gcs().send_text(MAV_SEVERITY_CRITICAL, "Lost manual control");
|
gcs().send_text(MAV_SEVERITY_CRITICAL, "Lost manual control");
|
||||||
|
|
||||||
if(g.failsafe_pilot_input == FS_PILOT_INPUT_DISARM) {
|
|
||||||
set_neutral_controls();
|
set_neutral_controls();
|
||||||
|
|
||||||
|
if(g.failsafe_pilot_input == FS_PILOT_INPUT_DISARM) {
|
||||||
init_disarm_motors();
|
init_disarm_motors();
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user