Skip to content

Commit

Permalink
ArduCopter: get MAV_STATE_BOOT on reboot
Browse files Browse the repository at this point in the history
Co-authored-by: Peter Hall <[email protected]>
  • Loading branch information
2 people authored and rmackay9 committed Jun 18, 2024
1 parent 4ef2d49 commit b782d24
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ArduCopter/GCS_Mavlink.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit b782d24

Please sign in to comment.