mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-22 00:28:30 -04:00
Rover: Make base_mode armed status depend upon the arming library, not
soft armed This change brings it in line with Plane.
This commit is contained in:
parent
a0c5ac1949
commit
5ac1293a52
@ -56,7 +56,7 @@ void Rover::send_heartbeat(mavlink_channel_t chan)
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
// we are armed if we are not initialising
|
// we are armed if we are not initialising
|
||||||
if (control_mode != INITIALISING && hal.util->get_soft_armed()) {
|
if (control_mode != INITIALISING && arming.is_armed()) {
|
||||||
base_mode |= MAV_MODE_FLAG_SAFETY_ARMED;
|
base_mode |= MAV_MODE_FLAG_SAFETY_ARMED;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user