mirror of https://github.com/ArduPilot/ardupilot
31 lines
545 B
C++
31 lines
545 B
C++
#pragma once
|
|
|
|
#include <stdint.h>
|
|
#include <GCS_MAVLink/GCS_MAVLink.h>
|
|
|
|
class AP_FWVersion {
|
|
|
|
public:
|
|
|
|
uint8_t major;
|
|
uint8_t minor;
|
|
uint8_t patch;
|
|
FIRMWARE_VERSION_TYPE fw_type;
|
|
const char *fw_string;
|
|
const char *fw_hash_str;
|
|
const char *middleware_name;
|
|
const char *middleware_hash_str;
|
|
const char *os_name;
|
|
const char *os_hash_str;
|
|
|
|
static const AP_FWVersion &get_fwverz() { return fwver; }
|
|
|
|
private:
|
|
|
|
static const AP_FWVersion fwver;
|
|
};
|
|
|
|
namespace AP {
|
|
const AP_FWVersion &fwversion();
|
|
};
|