AP_FWVersion: add structure to hold firmware version
This commit is contained in:
parent
0708130b5e
commit
445777429b
14
libraries/AP_Common/AP_FWVersion.h
Normal file
14
libraries/AP_Common/AP_FWVersion.h
Normal file
@ -0,0 +1,14 @@
|
||||
#pragma once
|
||||
|
||||
#include "ap_version.h" // header generated by build system
|
||||
|
||||
#include <stdint.h>
|
||||
#include <GCS_MAVLink/GCS_MAVLink.h>
|
||||
|
||||
typedef struct {
|
||||
uint8_t major;
|
||||
uint8_t minor;
|
||||
uint8_t patch;
|
||||
FIRMWARE_VERSION_TYPE fw_type;
|
||||
const char *fw_string;
|
||||
} AP_FWVersion;
|
Loading…
Reference in New Issue
Block a user