mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-30 02:33:33 +08:00
Checkpoint: Arming/Disarming works
This commit is contained in:
@@ -290,7 +290,7 @@ get_mavlink_mode_and_state(const struct vehicle_status_s *v_status, const struct
|
||||
}
|
||||
|
||||
/* set arming state */
|
||||
if (armed->armed) {
|
||||
if (v_status->flag_system_armed) {
|
||||
*mavlink_mode |= MAV_MODE_FLAG_SAFETY_ARMED;
|
||||
} else {
|
||||
*mavlink_mode &= ~MAV_MODE_FLAG_SAFETY_ARMED;
|
||||
|
||||
Reference in New Issue
Block a user