AP_Common: Make location PANIC message more explicit

This commit is contained in:
Pierre Kancir 2021-05-28 09:44:46 +02:00 committed by Peter Barker
parent d363cbadcc
commit ba94d8839f
1 changed files with 1 additions and 1 deletions

View File

@ -105,7 +105,7 @@ bool Location::get_alt_cm(AltFrame desired_frame, int32_t &ret_alt_cm) const
{
#if CONFIG_HAL_BOARD == HAL_BOARD_SITL
if (!initialised()) {
AP_HAL::panic("Should not be called on invalid location");
AP_HAL::panic("Should not be called on invalid location: Location cannot be (0, 0, 0)");
}
#endif
Location::AltFrame frame = get_alt_frame();