ArduSub: get MAV_STATE_BOOT on reboot

This commit is contained in:
richaravoil 2024-06-14 16:17:33 +02:00 committed by Willian Galvani
parent 11ee66fc22
commit d6ab080060
1 changed files with 3 additions and 0 deletions

View File

@ -63,6 +63,9 @@ MAV_STATE GCS_MAVLINK_Sub::vehicle_system_status() const
if (sub.motors.armed()) {
return MAV_STATE_ACTIVE;
}
if (!sub.ap.initialised) {
return MAV_STATE_BOOT;
}
return MAV_STATE_STANDBY;
}