Skip to content

Commit

Permalink
Copter: send NAMED_VALUE_INT name="ARMMASK" value=get_ready_to_arm_mo…
Browse files Browse the repository at this point in the history
…de_mask()
  • Loading branch information
jschall committed May 10, 2015
1 parent 5f8cfc7 commit fe48254
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ArduCopter/ArduCopter.pde
Original file line number Diff line number Diff line change
Expand Up @@ -1087,6 +1087,8 @@ static void one_hz_loop()
}
}

gcs_send_message(MSG_ARMMASK);

// auto disarm checks
auto_disarm_check();

Expand Down
4 changes: 4 additions & 0 deletions ArduCopter/GCS_Mavlink.pde
Original file line number Diff line number Diff line change
Expand Up @@ -669,6 +669,10 @@ bool GCS_MAVLINK::try_send_message(enum ap_message id)
case MSG_MAG_CAL_REPORT:
compass.send_mag_cal_report(chan);
break;

case MSG_ARMMASK:
mavlink_msg_named_value_int_send(chan, millis(), "ARMMASK", get_ready_to_arm_mode_mask());
break;
}

return true;
Expand Down

0 comments on commit fe48254

Please sign in to comment.