standard.h 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. /** @file
  2. * @brief MAVLink comm protocol generated from standard.xml
  3. * @see http://mavlink.org
  4. */
  5. #pragma once
  6. #ifndef MAVLINK_STANDARD_H
  7. #define MAVLINK_STANDARD_H
  8. #ifndef MAVLINK_H
  9. #error Wrong include order: MAVLINK_STANDARD.H MUST NOT BE DIRECTLY USED. Include mavlink.h from the same directory instead or set ALL AND EVERY defines from MAVLINK.H manually accordingly, including the #define MAVLINK_H call.
  10. #endif
  11. #define MAVLINK_STANDARD_XML_HASH 6489740766805068128
  12. #ifdef __cplusplus
  13. extern "C" {
  14. #endif
  15. // MESSAGE LENGTHS AND CRCS
  16. #ifndef MAVLINK_MESSAGE_LENGTHS
  17. #define MAVLINK_MESSAGE_LENGTHS {}
  18. #endif
  19. #ifndef MAVLINK_MESSAGE_CRCS
  20. #define MAVLINK_MESSAGE_CRCS {{0, 50, 9, 9, 0, 0, 0}, {300, 217, 22, 22, 0, 0, 0}}
  21. #endif
  22. #include "../protocol.h"
  23. #define MAVLINK_ENABLED_STANDARD
  24. // ENUM DEFINITIONS
  25. // MAVLINK VERSION
  26. #ifndef MAVLINK_VERSION
  27. #define MAVLINK_VERSION 2
  28. #endif
  29. #if (MAVLINK_VERSION == 0)
  30. #undef MAVLINK_VERSION
  31. #define MAVLINK_VERSION 2
  32. #endif
  33. // MESSAGE DEFINITIONS
  34. // base include
  35. #include "../minimal/minimal.h"
  36. #if MAVLINK_STANDARD_XML_HASH == MAVLINK_PRIMARY_XML_HASH
  37. # define MAVLINK_MESSAGE_INFO {MAVLINK_MESSAGE_INFO_HEARTBEAT, MAVLINK_MESSAGE_INFO_PROTOCOL_VERSION}
  38. # define MAVLINK_MESSAGE_NAMES {{ "HEARTBEAT", 0 }, { "PROTOCOL_VERSION", 300 }}
  39. # if MAVLINK_COMMAND_24BIT
  40. # include "../mavlink_get_info.h"
  41. # endif
  42. #endif
  43. #ifdef __cplusplus
  44. }
  45. #endif // __cplusplus
  46. #endif // MAVLINK_STANDARD_H