AP_FWVersion.h 579 B

12345678910111213141516171819202122232425262728293031
  1. #pragma once
  2. #include <stdint.h>
  3. #include <GCS_MAVLink/GCS_MAVLink.h>
  4. class AP_FWVersion {
  5. public:
  6. uint8_t major;
  7. uint8_t minor;
  8. uint8_t patch;
  9. FIRMWARE_VERSION_TYPE fw_type;
  10. const char *fw_string;
  11. const char *fw_hash_str;
  12. const char *middleware_name;
  13. const char *middleware_hash_str;
  14. const char *os_name;
  15. const char *os_hash_str;
  16. const uint32_t os_sw_version;
  17. static const AP_FWVersion &get_fwverz() { return fwver; }
  18. private:
  19. static const AP_FWVersion fwver;
  20. };
  21. namespace AP {
  22. const AP_FWVersion &fwversion();
  23. };