mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-03-11 17:13:56 -03:00
AP_Vehicle: make bad-mode-number notification consistent across vehicles
This commit is contained in:
parent
96be74bdc2
commit
7a06c941df
@ -355,6 +355,12 @@ void AP_Vehicle::update_dynamic_notch_at_specified_rate()
|
||||
}
|
||||
}
|
||||
|
||||
void AP_Vehicle::notify_no_such_mode(uint8_t mode_number)
|
||||
{
|
||||
GCS_SEND_TEXT(MAV_SEVERITY_WARNING,"No such mode %u", mode_number);
|
||||
AP::logger().Write_Error(LogErrorSubsystem::FLIGHT_MODE, LogErrorCode(mode_number));
|
||||
}
|
||||
|
||||
// reboot the vehicle in an orderly manner, doing various cleanups and
|
||||
// flashing LEDs as appropriate
|
||||
void AP_Vehicle::reboot(bool hold_in_bootloader)
|
||||
|
@ -85,6 +85,12 @@ public:
|
||||
return control_mode_reason;
|
||||
}
|
||||
|
||||
// perform any notifications required to indicate a mode change
|
||||
// failed due to a bad mode number being supplied. This can
|
||||
// happen for many reasons - bad mavlink packet and bad mode
|
||||
// parameters for example.
|
||||
void notify_no_such_mode(uint8_t mode_number);
|
||||
|
||||
/*
|
||||
common parameters for fixed wing aircraft
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user