Browse Source

Copter: Notify GCS that Flight mode change failed

Copter: Notify GCS that Flight mode change has failed
master
Luis Vale Gonçalves 9 years ago committed by Francisco Ferreira
parent
commit
b9e83755f3
  1. 1
      ArduCopter/flight_mode.cpp

1
ArduCopter/flight_mode.cpp

@ -142,6 +142,7 @@ bool Copter::set_mode(control_mode_t mode, mode_reason_t reason) @@ -142,6 +142,7 @@ bool Copter::set_mode(control_mode_t mode, mode_reason_t reason)
} else {
// Log error that we failed to enter desired flight mode
Log_Write_Error(ERROR_SUBSYSTEM_FLIGHT_MODE,mode);
gcs_send_text(MAV_SEVERITY_WARNING,"Flight mode change failed");
}
// update notify object

Loading…
Cancel
Save