2017-08-18 19:42:25 -03:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <stdint.h>
|
|
|
|
#include <GCS_MAVLink/GCS_MAVLink.h>
|
|
|
|
|
2018-06-13 07:28:40 -03:00
|
|
|
class AP_FWVersion {
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
2017-08-18 19:42:25 -03:00
|
|
|
uint8_t major;
|
|
|
|
uint8_t minor;
|
|
|
|
uint8_t patch;
|
|
|
|
FIRMWARE_VERSION_TYPE fw_type;
|
|
|
|
const char *fw_string;
|
2017-09-05 02:56:19 -03:00
|
|
|
const char *fw_hash_str;
|
2018-06-13 07:28:40 -03:00
|
|
|
const char *middleware_name;
|
2017-09-05 02:56:19 -03:00
|
|
|
const char *middleware_hash_str;
|
2018-06-13 07:28:40 -03:00
|
|
|
const char *os_name;
|
2017-09-05 02:56:19 -03:00
|
|
|
const char *os_hash_str;
|
2017-11-26 21:17:50 -04:00
|
|
|
const uint32_t os_sw_version;
|
2018-06-13 07:28:40 -03:00
|
|
|
|
|
|
|
static const AP_FWVersion &get_fwverz() { return fwver; }
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
|
|
|
static const AP_FWVersion fwver;
|
|
|
|
};
|
|
|
|
|
|
|
|
namespace AP {
|
|
|
|
const AP_FWVersion &fwversion();
|
|
|
|
};
|