mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-21 23:33:57 -04:00
Sub: Log manual control failsafe occurances
This commit is contained in:
parent
852374ab4d
commit
3e97cc5b46
@ -348,7 +348,7 @@ enum LoiterModeState {
|
||||
|
||||
// Error message sub systems and error codes
|
||||
#define ERROR_SUBSYSTEM_MAIN 1
|
||||
#define ERROR_SUBSYSTEM_RADIO 2
|
||||
#define ERROR_SUBSYSTEM_INPUT 2
|
||||
#define ERROR_SUBSYSTEM_COMPASS 3
|
||||
#define ERROR_SUBSYSTEM_OPTFLOW 4
|
||||
#define ERROR_SUBSYSTEM_FAILSAFE_RADIO 5
|
||||
|
@ -40,6 +40,7 @@ void Sub::failsafe_manual_control_check() {
|
||||
failsafe.manual_control = true;
|
||||
set_neutral_controls();
|
||||
init_disarm_motors();
|
||||
Log_Write_Error(ERROR_SUBSYSTEM_INPUT, ERROR_CODE_FAILSAFE_OCCURRED);
|
||||
gcs_send_text(MAV_SEVERITY_CRITICAL, "Lost manual control");
|
||||
}
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user