mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-10 09:58:28 -04:00
Copter: Adding flight mode to flight mode unchangeable messages
This commit is contained in:
parent
f6ab998924
commit
2822fa68fc
@ -213,7 +213,7 @@ bool Copter::set_mode(Mode::Number mode, ModeReason reason)
|
||||
#endif
|
||||
|
||||
if (!in_autorotation_check) {
|
||||
gcs().send_text(MAV_SEVERITY_WARNING,"Flight mode change failed");
|
||||
gcs().send_text(MAV_SEVERITY_WARNING,"Flight mode change failed %s", new_flightmode->name());
|
||||
AP::logger().Write_Error(LogErrorSubsystem::FLIGHT_MODE, LogErrorCode(mode));
|
||||
return false;
|
||||
}
|
||||
@ -251,7 +251,7 @@ bool Copter::set_mode(Mode::Number mode, ModeReason reason)
|
||||
}
|
||||
|
||||
if (!new_flightmode->init(ignore_checks)) {
|
||||
gcs().send_text(MAV_SEVERITY_WARNING,"Flight mode change failed");
|
||||
gcs().send_text(MAV_SEVERITY_WARNING,"Flight mode change failed %s", new_flightmode->name());
|
||||
AP::logger().Write_Error(LogErrorSubsystem::FLIGHT_MODE, LogErrorCode(mode));
|
||||
return false;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user