Guest User

Untitled

a guest
Aug 15th, 2018
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. void loop() {
  2.  
  3. // Initialize the required buffers
  4. mavlink_rc_channels_override_t sp;
  5. mavlink_message_t msg;
  6. uint8_t buf[MAVLINK_MAX_PACKET_LEN];
  7.  
  8. //We have to send the heartbeats to indicate side by side connection
  9. mav_heartbeat_pack();
  10.  
  11. mav_set_mode(current_mode);
  12.  
  13. mav_arm_pack(current_arm);
  14.  
  15. // ROLL, PITCH, THROTTLE, YAW
  16. mav_override_rc(current_roll, current_pitch, current_throttle, current_yaw);
  17.  
  18. ...
  19. }
Add Comment
Please, Sign In to add comment