mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-09 09:28:31 -04:00
DataFlash.h: Move format characters string to a more convenient location.
This commit is contained in:
parent
392e5257cc
commit
d2adf2cdd7
@ -130,26 +130,6 @@ protected:
|
|||||||
#define HEAD_BYTE1 0xA3 // Decimal 163
|
#define HEAD_BYTE1 0xA3 // Decimal 163
|
||||||
#define HEAD_BYTE2 0x95 // Decimal 149
|
#define HEAD_BYTE2 0x95 // Decimal 149
|
||||||
|
|
||||||
/*
|
|
||||||
Format characters in the format string for binary log messages
|
|
||||||
b : int8_t
|
|
||||||
B : uint8_t
|
|
||||||
h : int16_t
|
|
||||||
H : uint16_t
|
|
||||||
i : int32_t
|
|
||||||
I : uint32_t
|
|
||||||
f : float
|
|
||||||
n : char[4]
|
|
||||||
N : char[16]
|
|
||||||
Z : char[64]
|
|
||||||
c : int16_t * 100
|
|
||||||
C : uint16_t * 100
|
|
||||||
e : int32_t * 100
|
|
||||||
E : uint32_t * 100
|
|
||||||
L : int32_t latitude/longitude
|
|
||||||
M : uint8_t flight mode
|
|
||||||
*/
|
|
||||||
|
|
||||||
// structure used to define logging format
|
// structure used to define logging format
|
||||||
struct LogStructure {
|
struct LogStructure {
|
||||||
uint8_t msg_type;
|
uint8_t msg_type;
|
||||||
@ -499,6 +479,26 @@ struct PACKED log_AIRSPEED {
|
|||||||
float offset;
|
float offset;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/*
|
||||||
|
Format characters in the format string for binary log messages
|
||||||
|
b : int8_t
|
||||||
|
B : uint8_t
|
||||||
|
h : int16_t
|
||||||
|
H : uint16_t
|
||||||
|
i : int32_t
|
||||||
|
I : uint32_t
|
||||||
|
f : float
|
||||||
|
n : char[4]
|
||||||
|
N : char[16]
|
||||||
|
Z : char[64]
|
||||||
|
c : int16_t * 100
|
||||||
|
C : uint16_t * 100
|
||||||
|
e : int32_t * 100
|
||||||
|
E : uint32_t * 100
|
||||||
|
L : int32_t latitude/longitude
|
||||||
|
M : uint8_t flight mode
|
||||||
|
*/
|
||||||
|
|
||||||
// messages for all boards
|
// messages for all boards
|
||||||
#define LOG_BASE_STRUCTURES \
|
#define LOG_BASE_STRUCTURES \
|
||||||
{ LOG_FORMAT_MSG, sizeof(log_Format), \
|
{ LOG_FORMAT_MSG, sizeof(log_Format), \
|
||||||
|
Loading…
Reference in New Issue
Block a user