mavlink_msgs.h 720 B

1234567891011121314151617181920212223242526
  1. /*
  2. mavlink message definitions
  3. */
  4. #pragma once
  5. // we have separate helpers disabled to make it possible
  6. // to select MAVLink 1.0 in the arduino GUI build
  7. #define MAVLINK_SEPARATE_HELPERS
  8. #define MAVLINK_NO_CONVERSION_HELPERS
  9. #define MAVLINK_SEND_UART_BYTES(chan, buf, len) comm_send_buffer(chan, buf, len)
  10. // two buffers, one for USB, one for UART. This makes for easier testing with SITL
  11. #define MAVLINK_COMM_NUM_BUFFERS 2
  12. #define MAVLINK_MAX_PAYLOAD_LEN 255
  13. #include <mavlink2.h>
  14. /// MAVLink system definition
  15. extern mavlink_system_t mavlink_system;
  16. void comm_send_buffer(mavlink_channel_t chan, const uint8_t *buf, uint8_t len);
  17. #define MAVLINK_USE_CONVENIENCE_FUNCTIONS
  18. #include <generated/all/mavlink.h>