Skip to content

Commit

Permalink
mavlink: expose kill switch status
Browse files Browse the repository at this point in the history
  • Loading branch information
okalachev committed Oct 29, 2020
1 parent ec89e32 commit a27f821
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/modules/mavlink/mavlink_messages.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3031,6 +3031,7 @@ class MavlinkStreamManualControl : public MavlinkStream
msg.buttons |= (manual.loiter_switch << (shift * 3));
msg.buttons |= (manual.acro_switch << (shift * 4));
msg.buttons |= (manual.offboard_switch << (shift * 5));
msg.buttons |= (manual.kill_switch << (shift * 6));

mavlink_msg_manual_control_send_struct(_mavlink->get_channel(), &msg);

Expand Down

0 comments on commit a27f821

Please sign in to comment.