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:
Grant Morphett 2017-05-23 14:51:22 +10:00
parent a0c5ac1949
commit 5ac1293a52

View File

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