You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
545 B
30 lines
545 B
#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(); |
|
};
|
|
|