|
|
|
@ -62,8 +62,7 @@ bool Blimp::set_mode(Mode::Number mode, ModeReason reason)
@@ -62,8 +62,7 @@ bool Blimp::set_mode(Mode::Number mode, ModeReason reason)
|
|
|
|
|
|
|
|
|
|
Mode *new_flightmode = mode_from_mode_num((Mode::Number)mode); |
|
|
|
|
if (new_flightmode == nullptr) { |
|
|
|
|
gcs().send_text(MAV_SEVERITY_WARNING,"No such mode"); |
|
|
|
|
AP::logger().Write_Error(LogErrorSubsystem::FLIGHT_MODE, LogErrorCode(mode)); |
|
|
|
|
notify_no_such_mode((uint8_t)mode); |
|
|
|
|
return false; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|