Browse Source

Sub: Log manual control failsafe occurances

mission-4.1.18
Jacob Walser 8 years ago committed by Andrew Tridgell
parent
commit
3e97cc5b46
  1. 2
      ArduSub/defines.h
  2. 1
      ArduSub/events.cpp

2
ArduSub/defines.h

@ -348,7 +348,7 @@ enum LoiterModeState { @@ -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

1
ArduSub/events.cpp

@ -40,6 +40,7 @@ void Sub::failsafe_manual_control_check() { @@ -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…
Cancel
Save