mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-21 15:23:57 -04:00
ArduCopter: get MAV_STATE_BOOT on reboot
Co-authored-by: Peter Hall <33176108+IamPete1@users.noreply.github.com>
This commit is contained in:
parent
4ef2d49d92
commit
b782d24f87
@ -89,6 +89,10 @@ MAV_STATE GCS_MAVLINK_Copter::vehicle_system_status() const
|
||||
return MAV_STATE_STANDBY;
|
||||
}
|
||||
|
||||
if (!copter.ap.initialised) {
|
||||
return MAV_STATE_BOOT;
|
||||
}
|
||||
|
||||
return MAV_STATE_ACTIVE;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user