mirror of https://github.com/ArduPilot/ardupilot
AP_Common: Make location PANIC message more explicit
This commit is contained in:
parent
d363cbadcc
commit
ba94d8839f
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue