Plane: Make base_mode armed status depend upon the arming library, not soft armed
This commit is contained in:
parent
1d46ca048a
commit
35bb6a634e
@ -84,7 +84,7 @@ void Plane::send_heartbeat(mavlink_channel_t chan)
|
||||
#endif
|
||||
|
||||
// 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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user