ArduCopter: get MAV_STATE_BOOT on reboot

Co-authored-by: Peter Hall <33176108+IamPete1@users.noreply.github.com>
This commit is contained in:
richaravoil 2024-06-12 17:15:49 +02:00 committed by Randy Mackay
parent 4ef2d49d92
commit b782d24f87

View File

@ -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;
}