Copter: Notify GCS that Flight mode change failed

Copter: Notify GCS that Flight mode change has failed
This commit is contained in:
Luis Vale Gonçalves 2016-04-26 17:20:26 +01:00 committed by Francisco Ferreira
parent 946d30476a
commit b9e83755f3

View File

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