2016-02-17 21:25:53 -04:00
|
|
|
#pragma once
|
2015-11-05 19:50:54 -04:00
|
|
|
|
2019-06-04 03:38:51 -03:00
|
|
|
// if you add any new types, units or multipliers, please update README.md
|
|
|
|
|
2015-11-05 19:50:54 -04:00
|
|
|
/*
|
2019-06-04 03:28:01 -03:00
|
|
|
Format characters in the format string for binary log messages
|
|
|
|
a : int16_t[32]
|
|
|
|
b : int8_t
|
|
|
|
B : uint8_t
|
|
|
|
h : int16_t
|
|
|
|
H : uint16_t
|
|
|
|
i : int32_t
|
|
|
|
I : uint32_t
|
|
|
|
f : float
|
|
|
|
d : double
|
|
|
|
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
|
|
|
|
q : int64_t
|
|
|
|
Q : uint64_t
|
2015-11-05 19:50:54 -04:00
|
|
|
*/
|
2015-12-07 20:51:46 -04:00
|
|
|
|
|
|
|
struct UnitStructure {
|
|
|
|
const char ID;
|
2018-02-22 05:38:58 -04:00
|
|
|
const char *unit;
|
2015-12-07 20:51:46 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
struct MultiplierStructure {
|
|
|
|
const char ID;
|
|
|
|
const double multiplier;
|
|
|
|
};
|
|
|
|
|
|
|
|
// all units here should be base units
|
|
|
|
// This does mean battery capacity is here as "amp*second"
|
2017-09-17 18:47:11 -03:00
|
|
|
// Please keep the names consistent with Tools/autotest/param_metadata/param.py:33
|
2015-12-07 20:51:46 -04:00
|
|
|
const struct UnitStructure log_Units[] = {
|
2017-09-17 18:47:11 -03:00
|
|
|
{ '-', "" }, // no units e.g. Pi, or a string
|
|
|
|
{ '?', "UNKNOWN" }, // Units which haven't been worked out yet....
|
|
|
|
{ 'A', "A" }, // Ampere
|
|
|
|
{ 'd', "deg" }, // of the angular variety, -180 to 180
|
|
|
|
{ 'b', "B" }, // bytes
|
|
|
|
{ 'k', "deg/s" }, // degrees per second. Degrees are NOT SI, but is some situations more user-friendly than radians
|
|
|
|
{ 'D', "deglatitude" }, // degrees of latitude
|
|
|
|
{ 'e', "deg/s/s" }, // degrees per second per second. Degrees are NOT SI, but is some situations more user-friendly than radians
|
|
|
|
{ 'E', "rad/s" }, // radians per second
|
|
|
|
{ 'G', "Gauss" }, // Gauss is not an SI unit, but 1 tesla = 10000 gauss so a simple replacement is not possible here
|
|
|
|
{ 'h', "degheading" }, // 0.? to 359.?
|
|
|
|
{ 'i', "A.s" }, // Ampere second
|
2017-12-05 05:54:11 -04:00
|
|
|
{ 'J', "W.s" }, // Joule (Watt second)
|
2017-09-17 18:47:11 -03:00
|
|
|
// { 'l', "l" }, // litres
|
|
|
|
{ 'L', "rad/s/s" }, // radians per second per second
|
|
|
|
{ 'm', "m" }, // metres
|
|
|
|
{ 'n', "m/s" }, // metres per second
|
|
|
|
// { 'N', "N" }, // Newton
|
|
|
|
{ 'o', "m/s/s" }, // metres per second per second
|
|
|
|
{ 'O', "degC" }, // degrees Celsius. Not SI, but Kelvin is too cumbersome for most users
|
2018-02-05 19:31:43 -04:00
|
|
|
{ '%', "%" }, // percent
|
2017-09-17 18:47:11 -03:00
|
|
|
{ 'S', "satellites" }, // number of satellites
|
|
|
|
{ 's', "s" }, // seconds
|
|
|
|
{ 'q', "rpm" }, // rounds per minute. Not SI, but sometimes more intuitive than Hertz
|
|
|
|
{ 'r', "rad" }, // radians
|
|
|
|
{ 'U', "deglongitude" }, // degrees of longitude
|
|
|
|
{ 'u', "ppm" }, // pulses per minute
|
|
|
|
{ 'v', "V" }, // Volt
|
|
|
|
{ 'P', "Pa" }, // Pascal
|
|
|
|
{ 'w', "Ohm" }, // Ohm
|
2019-07-04 22:07:54 -03:00
|
|
|
// { 'W', "Watt" }, // Watt
|
2018-10-14 01:45:42 -03:00
|
|
|
{ 'Y', "us" }, // pulse width modulation in microseconds
|
2019-02-06 22:15:41 -04:00
|
|
|
{ 'z', "Hz" }, // Hertz
|
|
|
|
{ '#', "instance" } // (e.g.)Sensor instance number
|
2015-12-07 20:51:46 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
// this multiplier information applies to the raw value present in the
|
|
|
|
// log. Any adjustment implied by the format field (e.g. the "centi"
|
|
|
|
// in "centidegrees" is *IGNORED* for the purposes of scaling.
|
|
|
|
// Essentially "format" simply tells you the C-type, and format-type h
|
|
|
|
// (int16_t) is equivalent to format-type c (int16_t*100)
|
|
|
|
// tl;dr a GCS shouldn't/mustn't infer any scaling from the unit name
|
|
|
|
|
|
|
|
const struct MultiplierStructure log_Multipliers[] = {
|
2018-01-24 19:20:12 -04:00
|
|
|
{ '-', 0 }, // no multiplier e.g. a string
|
|
|
|
{ '?', 1 }, // multipliers which haven't been worked out yet....
|
2018-02-22 05:38:58 -04:00
|
|
|
// <leave a gap here, just in case....>
|
2015-12-07 20:51:46 -04:00
|
|
|
{ '2', 1e2 },
|
|
|
|
{ '1', 1e1 },
|
|
|
|
{ '0', 1e0 },
|
|
|
|
{ 'A', 1e-1 },
|
|
|
|
{ 'B', 1e-2 },
|
|
|
|
{ 'C', 1e-3 },
|
|
|
|
{ 'D', 1e-4 },
|
|
|
|
{ 'E', 1e-5 },
|
|
|
|
{ 'F', 1e-6 },
|
|
|
|
{ 'G', 1e-7 },
|
|
|
|
// <leave a gap here, just in case....>
|
2017-09-17 18:47:11 -03:00
|
|
|
{ '!', 3.6 }, // (ampere*second => milliampere*hour) and (km/h => m/s)
|
2017-12-05 05:54:11 -04:00
|
|
|
{ '/', 3600 }, // (ampere*second => ampere*hour)
|
2015-12-07 20:51:46 -04:00
|
|
|
};
|
|
|
|
|
2019-06-04 03:28:01 -03:00
|
|
|
/*
|
|
|
|
unfortunately these need to be macros because of a limitation of
|
|
|
|
named member structure initialisation in g++
|
|
|
|
*/
|
|
|
|
#define LOG_PACKET_HEADER uint8_t head1, head2, msgid;
|
|
|
|
#define LOG_PACKET_HEADER_INIT(id) head1 : HEAD_BYTE1, head2 : HEAD_BYTE2, msgid : id
|
|
|
|
#define LOG_PACKET_HEADER_LEN 3 // bytes required for LOG_PACKET_HEADER
|
|
|
|
|
|
|
|
// once the logging code is all converted we will remove these from
|
|
|
|
// this header
|
|
|
|
#define HEAD_BYTE1 0xA3 // Decimal 163
|
|
|
|
#define HEAD_BYTE2 0x95 // Decimal 149
|
|
|
|
|
|
|
|
// structure used to define logging format
|
|
|
|
struct LogStructure {
|
|
|
|
uint8_t msg_type;
|
|
|
|
uint8_t msg_len;
|
|
|
|
const char *name;
|
|
|
|
const char *format;
|
|
|
|
const char *labels;
|
|
|
|
const char *units;
|
|
|
|
const char *multipliers;
|
|
|
|
};
|
|
|
|
|
|
|
|
// maximum lengths of fields in LogStructure, including trailing nulls
|
|
|
|
static const uint8_t LS_NAME_SIZE = 5;
|
|
|
|
static const uint8_t LS_FORMAT_SIZE = 17;
|
|
|
|
static const uint8_t LS_LABELS_SIZE = 65;
|
|
|
|
static const uint8_t LS_UNITS_SIZE = 17;
|
|
|
|
static const uint8_t LS_MULTIPLIERS_SIZE = 17;
|
|
|
|
|
|
|
|
/*
|
|
|
|
log structures common to all vehicle types
|
|
|
|
*/
|
|
|
|
struct PACKED log_Format {
|
|
|
|
LOG_PACKET_HEADER;
|
|
|
|
uint8_t type;
|
|
|
|
uint8_t length;
|
|
|
|
char name[4];
|
|
|
|
char format[16];
|
|
|
|
char labels[64];
|
|
|
|
};
|
|
|
|
|
|
|
|
struct PACKED log_Unit {
|
|
|
|
LOG_PACKET_HEADER;
|
|
|
|
uint64_t time_us;
|
|
|
|
char type;
|
|
|
|
char unit[64]; // you know, this might be overkill...
|
|
|
|
};
|
|
|
|
|
|
|
|
struct PACKED log_Format_Multiplier {
|
|
|
|
LOG_PACKET_HEADER;
|
|
|
|
uint64_t time_us;
|
|
|
|
char type;
|
|
|
|
double multiplier;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct PACKED log_Format_Units {
|
|
|
|
LOG_PACKET_HEADER;
|
|
|
|
uint64_t time_us;
|
|
|
|
uint8_t format_type;
|
|
|
|
char units[16];
|
|
|
|
char multipliers[16];
|
|
|
|
};
|
|
|
|
|
2015-11-05 19:50:54 -04:00
|
|
|
struct PACKED log_Parameter {
|
|
|
|
LOG_PACKET_HEADER;
|
|
|
|
uint64_t time_us;
|
|
|
|
char name[16];
|
|
|
|
float value;
|
|
|
|
};
|
|
|
|
|
2017-08-25 04:18:26 -03:00
|
|
|
struct PACKED log_DSF {
|
|
|
|
LOG_PACKET_HEADER;
|
|
|
|
uint64_t time_us;
|
|
|
|
uint32_t dropped;
|
|
|
|
uint16_t blocks;
|
|
|
|
uint32_t bytes;
|
|
|
|
uint32_t buf_space_min;
|
|
|
|
uint32_t buf_space_max;
|
|
|
|
uint32_t buf_space_avg;
|
|
|
|
};
|
|
|
|
|
2019-02-01 07:29:43 -04:00
|
|
|
struct PACKED log_Event {
|
|
|
|
LOG_PACKET_HEADER;
|
|
|
|
uint64_t time_us;
|
|
|
|
uint8_t id;
|
|
|
|
};
|
2019-03-24 22:04:59 -03:00
|
|
|
|
|
|
|
struct PACKED log_Error {
|
|
|
|
LOG_PACKET_HEADER;
|
|
|
|
uint64_t time_us;
|
|
|
|
uint8_t sub_system;
|
|
|
|
uint8_t error_code;
|
|
|
|
};
|
|
|
|
|
2015-11-05 19:50:54 -04:00
|
|
|
struct PACKED log_GPS {
|
|
|
|
LOG_PACKET_HEADER;
|
|
|
|
uint64_t time_us;
|
|
|
|
uint8_t status;
|
|
|
|
uint32_t gps_week_ms;
|
|
|
|
uint16_t gps_week;
|
|
|
|
uint8_t num_sats;
|
|
|
|
uint16_t hdop;
|
|
|
|
int32_t latitude;
|
|
|
|
int32_t longitude;
|
|
|
|
int32_t altitude;
|
2016-05-04 21:23:34 -03:00
|
|
|
float ground_speed;
|
2016-05-04 22:21:34 -03:00
|
|
|
float ground_course;
|
2015-11-05 19:50:54 -04:00
|
|
|
float vel_z;
|
2017-05-28 04:12:50 -03:00
|
|
|
float yaw;
|
2015-11-05 19:50:54 -04:00
|
|
|
uint8_t used;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct PACKED log_GPA {
|
|
|
|
LOG_PACKET_HEADER;
|
|
|
|
uint64_t time_us;
|
|
|
|
uint16_t vdop;
|
|
|
|
uint16_t hacc;
|
|
|
|
uint16_t vacc;
|
|
|
|
uint16_t sacc;
|
2019-09-03 16:40:48 -03:00
|
|
|
float yaw_accuracy;
|
2016-05-04 22:21:34 -03:00
|
|
|
uint8_t have_vv;
|
2016-05-05 03:03:59 -03:00
|
|
|
uint32_t sample_ms;
|
2017-07-08 20:06:47 -03:00
|
|
|
uint16_t delta_ms;
|
2015-11-05 19:50:54 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
struct PACKED log_Message {
|
|
|
|
LOG_PACKET_HEADER;
|
|
|
|
uint64_t time_us;
|
|
|
|
char msg[64];
|
|
|
|
};
|
|
|
|
|
|
|
|
struct PACKED log_IMU {
|
|
|
|
LOG_PACKET_HEADER;
|
|
|
|
uint64_t time_us;
|
|
|
|
float gyro_x, gyro_y, gyro_z;
|
|
|
|
float accel_x, accel_y, accel_z;
|
|
|
|
uint32_t gyro_error, accel_error;
|
|
|
|
float temperature;
|
|
|
|
uint8_t gyro_health, accel_health;
|
2017-05-01 00:00:46 -03:00
|
|
|
uint16_t gyro_rate, accel_rate;
|
2015-11-05 19:50:54 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
struct PACKED log_IMUDT {
|
|
|
|
LOG_PACKET_HEADER;
|
|
|
|
uint64_t time_us;
|
2016-04-26 02:50:29 -03:00
|
|
|
float delta_time, delta_vel_dt, delta_ang_dt;
|
2015-11-05 19:50:54 -04:00
|
|
|
float delta_ang_x, delta_ang_y, delta_ang_z;
|
|
|
|
float delta_vel_x, delta_vel_y, delta_vel_z;
|
|
|
|
};
|
|
|
|
|
2017-09-01 08:05:16 -03:00
|
|
|
struct PACKED log_ISBH {
|
|
|
|
LOG_PACKET_HEADER;
|
|
|
|
uint64_t time_us;
|
|
|
|
uint16_t seqno;
|
|
|
|
uint8_t sensor_type; // e.g. GYRO or ACCEL
|
|
|
|
uint8_t instance;
|
|
|
|
uint16_t multiplier;
|
2017-10-10 20:36:04 -03:00
|
|
|
uint16_t sample_count;
|
2017-09-01 08:05:16 -03:00
|
|
|
uint64_t sample_us;
|
|
|
|
float sample_rate_hz;
|
|
|
|
};
|
|
|
|
static_assert(sizeof(log_ISBH) < 256, "log_ISBH is over-size");
|
|
|
|
|
|
|
|
struct PACKED log_ISBD {
|
|
|
|
LOG_PACKET_HEADER;
|
|
|
|
uint64_t time_us;
|
|
|
|
uint16_t isb_seqno;
|
|
|
|
uint16_t seqno; // seqno within isb_seqno
|
|
|
|
int16_t x[32];
|
|
|
|
int16_t y[32];
|
|
|
|
int16_t z[32];
|
|
|
|
};
|
|
|
|
static_assert(sizeof(log_ISBD) < 256, "log_ISBD is over-size");
|
|
|
|
|
2015-11-05 19:50:54 -04:00
|
|
|
struct PACKED log_Vibe {
|
|
|
|
LOG_PACKET_HEADER;
|
|
|
|
uint64_t time_us;
|
|
|
|
float vibe_x, vibe_y, vibe_z;
|
|
|
|
uint32_t clipping_0, clipping_1, clipping_2;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct PACKED log_RCIN {
|
|
|
|
LOG_PACKET_HEADER;
|
|
|
|
uint64_t time_us;
|
|
|
|
uint16_t chan1;
|
|
|
|
uint16_t chan2;
|
|
|
|
uint16_t chan3;
|
|
|
|
uint16_t chan4;
|
|
|
|
uint16_t chan5;
|
|
|
|
uint16_t chan6;
|
|
|
|
uint16_t chan7;
|
|
|
|
uint16_t chan8;
|
|
|
|
uint16_t chan9;
|
|
|
|
uint16_t chan10;
|
|
|
|
uint16_t chan11;
|
|
|
|
uint16_t chan12;
|
|
|
|
uint16_t chan13;
|
|
|
|
uint16_t chan14;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct PACKED log_RCOUT {
|
|
|
|
LOG_PACKET_HEADER;
|
|
|
|
uint64_t time_us;
|
|
|
|
uint16_t chan1;
|
|
|
|
uint16_t chan2;
|
|
|
|
uint16_t chan3;
|
|
|
|
uint16_t chan4;
|
|
|
|
uint16_t chan5;
|
|
|
|
uint16_t chan6;
|
|
|
|
uint16_t chan7;
|
|
|
|
uint16_t chan8;
|
|
|
|
uint16_t chan9;
|
|
|
|
uint16_t chan10;
|
|
|
|
uint16_t chan11;
|
|
|
|
uint16_t chan12;
|
2016-06-06 00:42:03 -03:00
|
|
|
uint16_t chan13;
|
|
|
|
uint16_t chan14;
|
2015-11-05 19:50:54 -04:00
|
|
|
};
|
|
|
|
|
2019-02-06 22:30:09 -04:00
|
|
|
struct PACKED log_MAV {
|
|
|
|
LOG_PACKET_HEADER;
|
|
|
|
uint64_t time_us;
|
|
|
|
uint8_t chan;
|
|
|
|
uint16_t packet_tx_count;
|
|
|
|
uint16_t packet_rx_success_count;
|
|
|
|
uint16_t packet_rx_drop_count;
|
2020-02-20 01:13:50 -04:00
|
|
|
uint8_t flags;
|
2020-03-23 23:15:03 -03:00
|
|
|
uint16_t stream_slowdown_ms;
|
2020-04-14 19:54:22 -03:00
|
|
|
uint16_t times_full;
|
2019-02-06 22:30:09 -04:00
|
|
|
};
|
|
|
|
|
2015-11-05 19:50:54 -04:00
|
|
|
struct PACKED log_RSSI {
|
|
|
|
LOG_PACKET_HEADER;
|
|
|
|
uint64_t time_us;
|
|
|
|
float RXRSSI;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct PACKED log_BARO {
|
|
|
|
LOG_PACKET_HEADER;
|
|
|
|
uint64_t time_us;
|
|
|
|
float altitude;
|
|
|
|
float pressure;
|
|
|
|
int16_t temperature;
|
|
|
|
float climbrate;
|
2016-05-04 21:35:59 -03:00
|
|
|
uint32_t sample_time_ms;
|
2016-05-13 17:01:43 -03:00
|
|
|
float drift_offset;
|
2017-03-24 02:00:22 -03:00
|
|
|
float ground_temp;
|
2019-07-30 21:07:34 -03:00
|
|
|
uint8_t healthy;
|
2015-11-05 19:50:54 -04:00
|
|
|
};
|
|
|
|
|
2018-09-02 09:27:58 -03:00
|
|
|
struct PACKED log_Optflow {
|
|
|
|
LOG_PACKET_HEADER;
|
|
|
|
uint64_t time_us;
|
|
|
|
uint8_t surface_quality;
|
|
|
|
float flow_x;
|
|
|
|
float flow_y;
|
|
|
|
float body_x;
|
|
|
|
float body_y;
|
|
|
|
};
|
|
|
|
|
2015-11-05 19:50:54 -04:00
|
|
|
struct PACKED log_AHRS {
|
|
|
|
LOG_PACKET_HEADER;
|
|
|
|
uint64_t time_us;
|
|
|
|
int16_t roll;
|
|
|
|
int16_t pitch;
|
|
|
|
uint16_t yaw;
|
|
|
|
float alt;
|
|
|
|
int32_t lat;
|
|
|
|
int32_t lng;
|
2017-04-15 08:19:36 -03:00
|
|
|
float q1, q2, q3, q4;
|
2015-11-05 19:50:54 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
struct PACKED log_POS {
|
|
|
|
LOG_PACKET_HEADER;
|
|
|
|
uint64_t time_us;
|
|
|
|
int32_t lat;
|
|
|
|
int32_t lng;
|
|
|
|
float alt;
|
2017-01-30 15:09:58 -04:00
|
|
|
float rel_home_alt;
|
|
|
|
float rel_origin_alt;
|
2015-11-05 19:50:54 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
struct PACKED log_POWR {
|
|
|
|
LOG_PACKET_HEADER;
|
|
|
|
uint64_t time_us;
|
2016-06-02 17:55:05 -03:00
|
|
|
float Vcc;
|
|
|
|
float Vservo;
|
2015-11-05 19:50:54 -04:00
|
|
|
uint16_t flags;
|
2020-07-19 21:34:43 -03:00
|
|
|
uint16_t accumulated_flags;
|
2018-04-12 20:49:48 -03:00
|
|
|
uint8_t safety_and_arm;
|
2015-11-05 19:50:54 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
struct PACKED log_EKF1 {
|
|
|
|
LOG_PACKET_HEADER;
|
|
|
|
uint64_t time_us;
|
2019-12-06 03:12:50 -04:00
|
|
|
uint8_t core;
|
2015-11-05 19:50:54 -04:00
|
|
|
int16_t roll;
|
|
|
|
int16_t pitch;
|
|
|
|
uint16_t yaw;
|
|
|
|
float velN;
|
|
|
|
float velE;
|
|
|
|
float velD;
|
|
|
|
float posD_dot;
|
|
|
|
float posN;
|
|
|
|
float posE;
|
|
|
|
float posD;
|
|
|
|
int16_t gyrX;
|
|
|
|
int16_t gyrY;
|
|
|
|
int16_t gyrZ;
|
2017-05-29 22:59:55 -03:00
|
|
|
int32_t originHgt;
|
2015-11-05 19:50:54 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
struct PACKED log_EKF2 {
|
|
|
|
LOG_PACKET_HEADER;
|
|
|
|
uint64_t time_us;
|
2019-12-06 03:12:50 -04:00
|
|
|
uint8_t core;
|
2015-11-05 19:50:54 -04:00
|
|
|
int8_t Ratio;
|
|
|
|
int8_t AZ1bias;
|
|
|
|
int8_t AZ2bias;
|
|
|
|
int16_t windN;
|
|
|
|
int16_t windE;
|
|
|
|
int16_t magN;
|
|
|
|
int16_t magE;
|
|
|
|
int16_t magD;
|
|
|
|
int16_t magX;
|
|
|
|
int16_t magY;
|
|
|
|
int16_t magZ;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct PACKED log_NKF2 {
|
|
|
|
LOG_PACKET_HEADER;
|
|
|
|
uint64_t time_us;
|
2019-12-06 03:12:50 -04:00
|
|
|
uint8_t core;
|
2015-11-05 19:50:54 -04:00
|
|
|
int8_t AZbias;
|
|
|
|
int16_t scaleX;
|
|
|
|
int16_t scaleY;
|
|
|
|
int16_t scaleZ;
|
|
|
|
int16_t windN;
|
|
|
|
int16_t windE;
|
|
|
|
int16_t magN;
|
|
|
|
int16_t magE;
|
|
|
|
int16_t magD;
|
|
|
|
int16_t magX;
|
|
|
|
int16_t magY;
|
|
|
|
int16_t magZ;
|
|
|
|
uint8_t index;
|
|
|
|
};
|
|
|
|
|
2020-03-29 19:52:10 -03:00
|
|
|
struct PACKED log_XKF2 {
|
2016-07-14 02:08:43 -03:00
|
|
|
LOG_PACKET_HEADER;
|
|
|
|
uint64_t time_us;
|
2019-12-06 03:12:50 -04:00
|
|
|
uint8_t core;
|
2016-07-14 02:08:43 -03:00
|
|
|
int16_t accBiasX;
|
|
|
|
int16_t accBiasY;
|
|
|
|
int16_t accBiasZ;
|
|
|
|
int16_t windN;
|
|
|
|
int16_t windE;
|
|
|
|
int16_t magN;
|
|
|
|
int16_t magE;
|
|
|
|
int16_t magD;
|
|
|
|
int16_t magX;
|
|
|
|
int16_t magY;
|
|
|
|
int16_t magZ;
|
|
|
|
uint8_t index;
|
|
|
|
};
|
|
|
|
|
2015-11-05 19:50:54 -04:00
|
|
|
struct PACKED log_EKF3 {
|
|
|
|
LOG_PACKET_HEADER;
|
|
|
|
uint64_t time_us;
|
2019-12-06 03:12:50 -04:00
|
|
|
uint8_t core;
|
2015-11-05 19:50:54 -04:00
|
|
|
int16_t innovVN;
|
|
|
|
int16_t innovVE;
|
|
|
|
int16_t innovVD;
|
|
|
|
int16_t innovPN;
|
|
|
|
int16_t innovPE;
|
|
|
|
int16_t innovPD;
|
|
|
|
int16_t innovMX;
|
|
|
|
int16_t innovMY;
|
|
|
|
int16_t innovMZ;
|
|
|
|
int16_t innovVT;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct PACKED log_NKF3 {
|
|
|
|
LOG_PACKET_HEADER;
|
|
|
|
uint64_t time_us;
|
2019-12-06 03:12:50 -04:00
|
|
|
uint8_t core;
|
2015-11-05 19:50:54 -04:00
|
|
|
int16_t innovVN;
|
|
|
|
int16_t innovVE;
|
|
|
|
int16_t innovVD;
|
|
|
|
int16_t innovPN;
|
|
|
|
int16_t innovPE;
|
|
|
|
int16_t innovPD;
|
|
|
|
int16_t innovMX;
|
|
|
|
int16_t innovMY;
|
|
|
|
int16_t innovMZ;
|
|
|
|
int16_t innovYaw;
|
|
|
|
int16_t innovVT;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct PACKED log_EKF4 {
|
|
|
|
LOG_PACKET_HEADER;
|
|
|
|
uint64_t time_us;
|
2019-12-06 03:12:50 -04:00
|
|
|
uint8_t core;
|
2015-11-05 19:50:54 -04:00
|
|
|
int16_t sqrtvarV;
|
|
|
|
int16_t sqrtvarP;
|
|
|
|
int16_t sqrtvarH;
|
|
|
|
int16_t sqrtvarMX;
|
|
|
|
int16_t sqrtvarMY;
|
|
|
|
int16_t sqrtvarMZ;
|
|
|
|
int16_t sqrtvarVT;
|
|
|
|
int8_t offsetNorth;
|
|
|
|
int8_t offsetEast;
|
2016-05-10 03:07:56 -03:00
|
|
|
uint16_t faults;
|
2015-11-05 19:50:54 -04:00
|
|
|
uint8_t timeouts;
|
|
|
|
uint16_t solution;
|
|
|
|
uint16_t gps;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct PACKED log_NKF4 {
|
|
|
|
LOG_PACKET_HEADER;
|
|
|
|
uint64_t time_us;
|
2019-12-06 03:12:50 -04:00
|
|
|
uint8_t core;
|
2015-11-05 19:50:54 -04:00
|
|
|
int16_t sqrtvarV;
|
|
|
|
int16_t sqrtvarP;
|
|
|
|
int16_t sqrtvarH;
|
|
|
|
int16_t sqrtvarM;
|
|
|
|
int16_t sqrtvarVT;
|
|
|
|
float tiltErr;
|
|
|
|
int8_t offsetNorth;
|
|
|
|
int8_t offsetEast;
|
2016-05-10 03:07:56 -03:00
|
|
|
uint16_t faults;
|
2015-11-05 19:50:54 -04:00
|
|
|
uint8_t timeouts;
|
2020-02-10 21:31:44 -04:00
|
|
|
uint32_t solution;
|
2015-11-05 19:50:54 -04:00
|
|
|
uint16_t gps;
|
|
|
|
int8_t primary;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct PACKED log_EKF5 {
|
|
|
|
LOG_PACKET_HEADER;
|
|
|
|
uint64_t time_us;
|
|
|
|
uint8_t normInnov;
|
|
|
|
int16_t FIX;
|
|
|
|
int16_t FIY;
|
|
|
|
int16_t AFI;
|
|
|
|
int16_t HAGL;
|
|
|
|
int16_t offset;
|
|
|
|
int16_t RI;
|
|
|
|
uint16_t meaRng;
|
|
|
|
uint16_t errHAGL;
|
2016-07-03 19:11:03 -03:00
|
|
|
};
|
|
|
|
|
|
|
|
struct PACKED log_NKF5 {
|
|
|
|
LOG_PACKET_HEADER;
|
|
|
|
uint64_t time_us;
|
|
|
|
uint8_t normInnov;
|
|
|
|
int16_t FIX;
|
|
|
|
int16_t FIY;
|
|
|
|
int16_t AFI;
|
|
|
|
int16_t HAGL;
|
|
|
|
int16_t offset;
|
|
|
|
int16_t RI;
|
|
|
|
uint16_t meaRng;
|
|
|
|
uint16_t errHAGL;
|
2016-06-30 21:44:36 -03:00
|
|
|
float angErr;
|
|
|
|
float velErr;
|
|
|
|
float posErr;
|
2015-11-05 19:50:54 -04:00
|
|
|
};
|
|
|
|
|
2017-04-15 07:37:00 -03:00
|
|
|
struct PACKED log_Quaternion {
|
|
|
|
LOG_PACKET_HEADER;
|
|
|
|
uint64_t time_us;
|
2019-12-06 03:12:50 -04:00
|
|
|
uint8_t core;
|
2017-04-15 07:37:00 -03:00
|
|
|
float q1;
|
|
|
|
float q2;
|
|
|
|
float q3;
|
|
|
|
float q4;
|
|
|
|
};
|
|
|
|
|
2016-11-23 08:04:51 -04:00
|
|
|
struct PACKED log_RngBcnDebug {
|
|
|
|
LOG_PACKET_HEADER;
|
|
|
|
uint64_t time_us;
|
|
|
|
uint8_t ID; // beacon identifier
|
|
|
|
int16_t rng; // beacon range (cm)
|
|
|
|
int16_t innov; // beacon range innovation (cm)
|
|
|
|
uint16_t sqrtInnovVar; // sqrt of beacon range innovation variance (cm)
|
|
|
|
uint16_t testRatio; // beacon range innovation consistency test ratio *100
|
|
|
|
int16_t beaconPosN; // beacon north position (cm)
|
|
|
|
int16_t beaconPosE; // beacon east position (cm)
|
|
|
|
int16_t beaconPosD; // beacon down position (cm)
|
|
|
|
int16_t offsetHigh; // high estimate of vertical position offset of beacons rel to EKF origin (cm)
|
|
|
|
int16_t offsetLow; // low estimate of vertical position offset of beacons rel to EKF origin (cm)
|
2016-12-17 06:00:57 -04:00
|
|
|
int16_t posN; // North position of receiver rel to EKF origin (cm)
|
|
|
|
int16_t posE; // East position of receiver rel to EKF origin (cm)
|
|
|
|
int16_t posD; // Down position of receiver rel to EKF origin (cm)
|
2016-11-23 08:04:51 -04:00
|
|
|
};
|
|
|
|
|
2017-04-03 23:47:04 -03:00
|
|
|
// visual odometry sensor data
|
|
|
|
struct PACKED log_VisualOdom {
|
|
|
|
LOG_PACKET_HEADER;
|
|
|
|
uint64_t time_us;
|
|
|
|
float time_delta;
|
|
|
|
float angle_delta_x;
|
|
|
|
float angle_delta_y;
|
|
|
|
float angle_delta_z;
|
|
|
|
float position_delta_x;
|
|
|
|
float position_delta_y;
|
|
|
|
float position_delta_z;
|
|
|
|
float confidence;
|
|
|
|
};
|
|
|
|
|
2020-03-26 01:00:30 -03:00
|
|
|
// visual position data
|
|
|
|
struct PACKED log_VisualPosition {
|
|
|
|
LOG_PACKET_HEADER;
|
|
|
|
uint64_t time_us;
|
|
|
|
uint64_t remote_time_us;
|
|
|
|
uint32_t time_ms;
|
|
|
|
float pos_x;
|
|
|
|
float pos_y;
|
|
|
|
float pos_z;
|
|
|
|
float roll; // degrees
|
|
|
|
float pitch; // degrees
|
|
|
|
float yaw; // degrees
|
2020-06-08 21:40:29 -03:00
|
|
|
float pos_err; // meters
|
|
|
|
float ang_err; // radians
|
2020-04-10 21:52:57 -03:00
|
|
|
uint8_t reset_counter;
|
2020-03-26 01:00:30 -03:00
|
|
|
};
|
|
|
|
|
2020-05-15 01:30:57 -03:00
|
|
|
struct PACKED log_VisualVelocity {
|
|
|
|
LOG_PACKET_HEADER;
|
|
|
|
uint64_t time_us;
|
|
|
|
uint64_t remote_time_us;
|
|
|
|
uint32_t time_ms;
|
|
|
|
float vel_x;
|
|
|
|
float vel_y;
|
|
|
|
float vel_z;
|
2020-05-28 22:24:26 -03:00
|
|
|
float vel_err;
|
2020-05-15 01:30:57 -03:00
|
|
|
uint8_t reset_counter;
|
|
|
|
};
|
|
|
|
|
2017-03-22 00:46:33 -03:00
|
|
|
struct PACKED log_ekfBodyOdomDebug {
|
|
|
|
LOG_PACKET_HEADER;
|
|
|
|
uint64_t time_us;
|
|
|
|
float velInnovX;
|
|
|
|
float velInnovY;
|
|
|
|
float velInnovZ;
|
|
|
|
float velInnovVarX;
|
|
|
|
float velInnovVarY;
|
|
|
|
float velInnovVarZ;
|
|
|
|
};
|
|
|
|
|
2017-05-20 23:13:08 -03:00
|
|
|
struct PACKED log_ekfStateVar {
|
|
|
|
LOG_PACKET_HEADER;
|
|
|
|
uint64_t time_us;
|
|
|
|
float v00;
|
|
|
|
float v01;
|
|
|
|
float v02;
|
|
|
|
float v03;
|
|
|
|
float v04;
|
|
|
|
float v05;
|
|
|
|
float v06;
|
|
|
|
float v07;
|
|
|
|
float v08;
|
|
|
|
float v09;
|
|
|
|
float v10;
|
|
|
|
float v11;
|
|
|
|
};
|
|
|
|
|
2015-11-05 19:50:54 -04:00
|
|
|
struct PACKED log_Cmd {
|
|
|
|
LOG_PACKET_HEADER;
|
|
|
|
uint64_t time_us;
|
|
|
|
uint16_t command_total;
|
|
|
|
uint16_t sequence;
|
|
|
|
uint16_t command;
|
|
|
|
float param1;
|
|
|
|
float param2;
|
|
|
|
float param3;
|
|
|
|
float param4;
|
2018-11-24 23:10:07 -04:00
|
|
|
int32_t latitude;
|
|
|
|
int32_t longitude;
|
2015-11-05 19:50:54 -04:00
|
|
|
float altitude;
|
2018-03-15 15:39:51 -03:00
|
|
|
uint8_t frame;
|
2015-11-05 19:50:54 -04:00
|
|
|
};
|
|
|
|
|
2019-08-22 22:21:39 -03:00
|
|
|
struct PACKED log_MAVLink_Command {
|
|
|
|
LOG_PACKET_HEADER;
|
|
|
|
uint64_t time_us;
|
|
|
|
uint8_t target_system;
|
|
|
|
uint8_t target_component;
|
|
|
|
uint8_t frame;
|
|
|
|
uint16_t command;
|
|
|
|
uint8_t current;
|
|
|
|
uint8_t autocontinue;
|
|
|
|
float param1;
|
|
|
|
float param2;
|
|
|
|
float param3;
|
|
|
|
float param4;
|
|
|
|
int32_t x;
|
|
|
|
int32_t y;
|
|
|
|
float z;
|
|
|
|
uint8_t result;
|
|
|
|
bool was_command_long;
|
|
|
|
};
|
|
|
|
|
2015-11-05 19:50:54 -04:00
|
|
|
struct PACKED log_Radio {
|
|
|
|
LOG_PACKET_HEADER;
|
|
|
|
uint64_t time_us;
|
|
|
|
uint8_t rssi;
|
|
|
|
uint8_t remrssi;
|
|
|
|
uint8_t txbuf;
|
|
|
|
uint8_t noise;
|
|
|
|
uint8_t remnoise;
|
|
|
|
uint16_t rxerrors;
|
|
|
|
uint16_t fixed;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct PACKED log_Camera {
|
|
|
|
LOG_PACKET_HEADER;
|
|
|
|
uint64_t time_us;
|
|
|
|
uint32_t gps_time;
|
|
|
|
uint16_t gps_week;
|
|
|
|
int32_t latitude;
|
|
|
|
int32_t longitude;
|
|
|
|
int32_t altitude;
|
|
|
|
int32_t altitude_rel;
|
2016-01-28 18:51:52 -04:00
|
|
|
int32_t altitude_gps;
|
2016-01-06 20:29:52 -04:00
|
|
|
int16_t roll;
|
|
|
|
int16_t pitch;
|
|
|
|
uint16_t yaw;
|
|
|
|
};
|
|
|
|
|
2015-11-05 19:50:54 -04:00
|
|
|
struct PACKED log_Attitude {
|
|
|
|
LOG_PACKET_HEADER;
|
|
|
|
uint64_t time_us;
|
|
|
|
int16_t control_roll;
|
|
|
|
int16_t roll;
|
|
|
|
int16_t control_pitch;
|
|
|
|
int16_t pitch;
|
|
|
|
uint16_t control_yaw;
|
|
|
|
uint16_t yaw;
|
|
|
|
uint16_t error_rp;
|
|
|
|
uint16_t error_yaw;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct PACKED log_PID {
|
|
|
|
LOG_PACKET_HEADER;
|
|
|
|
uint64_t time_us;
|
2019-06-27 06:31:52 -03:00
|
|
|
float target;
|
2018-08-08 01:11:43 -03:00
|
|
|
float actual;
|
2019-06-27 06:31:52 -03:00
|
|
|
float error;
|
2015-11-05 19:50:54 -04:00
|
|
|
float P;
|
|
|
|
float I;
|
|
|
|
float D;
|
|
|
|
float FF;
|
2020-05-10 04:16:23 -03:00
|
|
|
float Dmod;
|
2015-11-05 19:50:54 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
struct PACKED log_Current {
|
|
|
|
LOG_PACKET_HEADER;
|
|
|
|
uint64_t time_us;
|
2020-01-07 19:58:03 -04:00
|
|
|
uint8_t instance;
|
2017-05-30 22:44:40 -03:00
|
|
|
float voltage;
|
|
|
|
float voltage_resting;
|
2016-06-02 18:00:57 -03:00
|
|
|
float current_amps;
|
2015-11-05 19:50:54 -04:00
|
|
|
float current_total;
|
2017-12-05 05:54:11 -04:00
|
|
|
float consumed_wh;
|
2017-04-08 16:04:12 -03:00
|
|
|
int16_t temperature; // degrees C * 100
|
2017-05-30 22:44:40 -03:00
|
|
|
float resistance;
|
|
|
|
};
|
|
|
|
|
2019-02-05 01:00:28 -04:00
|
|
|
struct PACKED log_WheelEncoder {
|
|
|
|
LOG_PACKET_HEADER;
|
|
|
|
uint64_t time_us;
|
|
|
|
float distance_0;
|
|
|
|
uint8_t quality_0;
|
|
|
|
float distance_1;
|
|
|
|
uint8_t quality_1;
|
|
|
|
};
|
|
|
|
|
2019-02-23 15:31:20 -04:00
|
|
|
struct PACKED log_ADSB {
|
|
|
|
LOG_PACKET_HEADER;
|
|
|
|
uint64_t time_us;
|
|
|
|
uint32_t ICAO_address;
|
|
|
|
int32_t lat;
|
|
|
|
int32_t lng;
|
|
|
|
int32_t alt;
|
|
|
|
uint16_t heading;
|
|
|
|
uint16_t hor_velocity;
|
|
|
|
int16_t ver_velocity;
|
|
|
|
uint16_t squawk;
|
|
|
|
};
|
|
|
|
|
2017-05-30 22:44:40 -03:00
|
|
|
struct PACKED log_Current_Cells {
|
|
|
|
LOG_PACKET_HEADER;
|
|
|
|
uint64_t time_us;
|
2020-01-07 19:58:03 -04:00
|
|
|
uint8_t instance;
|
2017-05-30 22:44:40 -03:00
|
|
|
float voltage;
|
2020-06-03 00:29:31 -03:00
|
|
|
uint16_t cell_voltages[12];
|
2015-11-05 19:50:54 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
struct PACKED log_Compass {
|
|
|
|
LOG_PACKET_HEADER;
|
|
|
|
uint64_t time_us;
|
|
|
|
int16_t mag_x;
|
|
|
|
int16_t mag_y;
|
|
|
|
int16_t mag_z;
|
|
|
|
int16_t offset_x;
|
|
|
|
int16_t offset_y;
|
|
|
|
int16_t offset_z;
|
|
|
|
int16_t motor_offset_x;
|
|
|
|
int16_t motor_offset_y;
|
|
|
|
int16_t motor_offset_z;
|
|
|
|
uint8_t health;
|
2016-05-04 04:10:25 -03:00
|
|
|
uint32_t SUS;
|
2015-11-05 19:50:54 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
struct PACKED log_Mode {
|
|
|
|
LOG_PACKET_HEADER;
|
|
|
|
uint64_t time_us;
|
|
|
|
uint8_t mode;
|
|
|
|
uint8_t mode_num;
|
2016-01-25 19:45:27 -04:00
|
|
|
uint8_t mode_reason;
|
2015-11-05 19:50:54 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
/*
|
|
|
|
rangefinder - support for 4 sensors
|
|
|
|
*/
|
|
|
|
struct PACKED log_RFND {
|
|
|
|
LOG_PACKET_HEADER;
|
|
|
|
uint64_t time_us;
|
2019-05-29 21:28:17 -03:00
|
|
|
uint8_t instance;
|
|
|
|
uint16_t dist;
|
|
|
|
uint8_t status;
|
|
|
|
uint8_t orient;
|
2015-11-05 19:50:54 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
/*
|
|
|
|
terrain log structure
|
|
|
|
*/
|
|
|
|
struct PACKED log_TERRAIN {
|
|
|
|
LOG_PACKET_HEADER;
|
|
|
|
uint64_t time_us;
|
|
|
|
uint8_t status;
|
|
|
|
int32_t lat;
|
|
|
|
int32_t lng;
|
|
|
|
uint16_t spacing;
|
|
|
|
float terrain_height;
|
|
|
|
float current_height;
|
|
|
|
uint16_t pending;
|
|
|
|
uint16_t loaded;
|
|
|
|
};
|
|
|
|
|
|
|
|
/*
|
|
|
|
UBlox logging
|
|
|
|
*/
|
|
|
|
struct PACKED log_Ubx1 {
|
|
|
|
LOG_PACKET_HEADER;
|
|
|
|
uint64_t time_us;
|
|
|
|
uint8_t instance;
|
|
|
|
uint16_t noisePerMS;
|
|
|
|
uint8_t jamInd;
|
|
|
|
uint8_t aPower;
|
|
|
|
uint16_t agcCnt;
|
2017-10-04 15:08:21 -03:00
|
|
|
uint32_t config;
|
2015-11-05 19:50:54 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
struct PACKED log_Ubx2 {
|
|
|
|
LOG_PACKET_HEADER;
|
|
|
|
uint64_t time_us;
|
|
|
|
uint8_t instance;
|
|
|
|
int8_t ofsI;
|
|
|
|
uint8_t magI;
|
|
|
|
int8_t ofsQ;
|
|
|
|
uint8_t magQ;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct PACKED log_GPS_RAW {
|
|
|
|
LOG_PACKET_HEADER;
|
|
|
|
uint64_t time_us;
|
|
|
|
int32_t iTOW;
|
|
|
|
int16_t week;
|
|
|
|
uint8_t numSV;
|
|
|
|
uint8_t sv;
|
|
|
|
double cpMes;
|
|
|
|
double prMes;
|
|
|
|
float doMes;
|
|
|
|
int8_t mesQI;
|
|
|
|
int8_t cno;
|
|
|
|
uint8_t lli;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct PACKED log_GPS_RAWH {
|
|
|
|
LOG_PACKET_HEADER;
|
|
|
|
uint64_t time_us;
|
|
|
|
double rcvTow;
|
|
|
|
uint16_t week;
|
|
|
|
int8_t leapS;
|
|
|
|
uint8_t numMeas;
|
|
|
|
uint8_t recStat;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct PACKED log_GPS_RAWS {
|
|
|
|
LOG_PACKET_HEADER;
|
|
|
|
uint64_t time_us;
|
|
|
|
double prMes;
|
|
|
|
double cpMes;
|
|
|
|
float doMes;
|
|
|
|
uint8_t gnssId;
|
|
|
|
uint8_t svId;
|
|
|
|
uint8_t freqId;
|
|
|
|
uint16_t locktime;
|
|
|
|
uint8_t cno;
|
|
|
|
uint8_t prStdev;
|
|
|
|
uint8_t cpStdev;
|
|
|
|
uint8_t doStdev;
|
|
|
|
uint8_t trkStat;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct PACKED log_Esc {
|
|
|
|
LOG_PACKET_HEADER;
|
2020-03-26 20:59:13 -03:00
|
|
|
uint64_t time_us;
|
|
|
|
uint8_t instance;
|
2018-04-02 01:21:56 -03:00
|
|
|
int32_t rpm;
|
|
|
|
uint16_t voltage;
|
|
|
|
uint16_t current;
|
2019-11-19 21:37:29 -04:00
|
|
|
int16_t esc_temp;
|
2018-04-02 01:21:56 -03:00
|
|
|
uint16_t current_tot;
|
2019-11-19 21:37:29 -04:00
|
|
|
int16_t motor_temp;
|
2015-11-05 19:50:54 -04:00
|
|
|
};
|
|
|
|
|
2020-01-04 00:25:55 -04:00
|
|
|
struct PACKED log_CSRV {
|
|
|
|
LOG_PACKET_HEADER;
|
|
|
|
uint64_t time_us;
|
|
|
|
uint8_t id;
|
|
|
|
float position;
|
|
|
|
float force;
|
|
|
|
float speed;
|
|
|
|
uint8_t power_pct;
|
|
|
|
};
|
|
|
|
|
2020-01-04 00:56:44 -04:00
|
|
|
struct PACKED log_CESC {
|
|
|
|
LOG_PACKET_HEADER;
|
|
|
|
uint64_t time_us;
|
|
|
|
uint8_t id;
|
|
|
|
uint32_t error_count;
|
|
|
|
float voltage;
|
|
|
|
float current;
|
|
|
|
float temperature;
|
|
|
|
int32_t rpm;
|
|
|
|
uint8_t power_pct;
|
|
|
|
};
|
|
|
|
|
2015-11-05 19:50:54 -04:00
|
|
|
struct PACKED log_AIRSPEED {
|
|
|
|
LOG_PACKET_HEADER;
|
|
|
|
uint64_t time_us;
|
|
|
|
float airspeed;
|
|
|
|
float diffpressure;
|
|
|
|
int16_t temperature;
|
|
|
|
float rawpressure;
|
|
|
|
float offset;
|
2016-05-12 18:50:57 -03:00
|
|
|
bool use;
|
2017-11-03 07:28:20 -03:00
|
|
|
bool healthy;
|
2019-02-03 11:06:55 -04:00
|
|
|
float health_prob;
|
2017-11-03 07:28:20 -03:00
|
|
|
uint8_t primary;
|
2015-11-05 19:50:54 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
struct PACKED log_ACCEL {
|
|
|
|
LOG_PACKET_HEADER;
|
|
|
|
uint64_t time_us;
|
|
|
|
uint64_t sample_us;
|
|
|
|
float AccX, AccY, AccZ;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct PACKED log_GYRO {
|
|
|
|
LOG_PACKET_HEADER;
|
|
|
|
uint64_t time_us;
|
|
|
|
uint64_t sample_us;
|
|
|
|
float GyrX, GyrY, GyrZ;
|
|
|
|
};
|
|
|
|
|
2019-02-11 04:38:01 -04:00
|
|
|
struct PACKED log_MAV_Stats {
|
2015-11-10 02:34:31 -04:00
|
|
|
LOG_PACKET_HEADER;
|
2020-04-03 22:37:36 -03:00
|
|
|
uint64_t timestamp;
|
2015-11-10 02:34:31 -04:00
|
|
|
uint32_t seqno;
|
|
|
|
uint32_t dropped;
|
|
|
|
uint32_t retries;
|
|
|
|
uint32_t resends;
|
|
|
|
uint8_t state_free_avg;
|
|
|
|
uint8_t state_free_min;
|
|
|
|
uint8_t state_free_max;
|
|
|
|
uint8_t state_pending_avg;
|
|
|
|
uint8_t state_pending_min;
|
|
|
|
uint8_t state_pending_max;
|
|
|
|
uint8_t state_sent_avg;
|
|
|
|
uint8_t state_sent_min;
|
|
|
|
uint8_t state_sent_max;
|
|
|
|
// uint8_t state_retry_avg;
|
|
|
|
// uint8_t state_retry_min;
|
|
|
|
// uint8_t state_retry_max;
|
|
|
|
};
|
|
|
|
|
2015-11-05 19:50:54 -04:00
|
|
|
struct PACKED log_ORGN {
|
|
|
|
LOG_PACKET_HEADER;
|
|
|
|
uint64_t time_us;
|
|
|
|
uint8_t origin_type;
|
|
|
|
int32_t latitude;
|
|
|
|
int32_t longitude;
|
|
|
|
int32_t altitude;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct PACKED log_RPM {
|
|
|
|
LOG_PACKET_HEADER;
|
|
|
|
uint64_t time_us;
|
|
|
|
float rpm1;
|
|
|
|
float rpm2;
|
|
|
|
};
|
|
|
|
|
2016-03-24 22:11:11 -03:00
|
|
|
struct PACKED log_Rate {
|
|
|
|
LOG_PACKET_HEADER;
|
|
|
|
uint64_t time_us;
|
|
|
|
float control_roll;
|
|
|
|
float roll;
|
|
|
|
float roll_out;
|
|
|
|
float control_pitch;
|
|
|
|
float pitch;
|
|
|
|
float pitch_out;
|
|
|
|
float control_yaw;
|
|
|
|
float yaw;
|
|
|
|
float yaw_out;
|
|
|
|
float control_accel;
|
|
|
|
float accel;
|
|
|
|
float accel_out;
|
|
|
|
};
|
|
|
|
|
2015-11-09 18:10:46 -04:00
|
|
|
struct PACKED log_SbpLLH {
|
|
|
|
LOG_PACKET_HEADER;
|
|
|
|
uint64_t time_us;
|
|
|
|
uint32_t tow;
|
|
|
|
int32_t lat;
|
|
|
|
int32_t lon;
|
|
|
|
int32_t alt;
|
|
|
|
uint8_t n_sats;
|
|
|
|
uint8_t flags;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct PACKED log_SbpHealth {
|
|
|
|
LOG_PACKET_HEADER;
|
|
|
|
uint64_t time_us;
|
|
|
|
uint32_t crc_error_counter;
|
|
|
|
uint32_t last_injected_data_ms;
|
|
|
|
uint32_t last_iar_num_hypotheses;
|
|
|
|
};
|
|
|
|
|
2017-06-26 12:41:24 -03:00
|
|
|
struct PACKED log_SbpRAWH {
|
2015-11-09 18:10:46 -04:00
|
|
|
LOG_PACKET_HEADER;
|
|
|
|
uint64_t time_us;
|
|
|
|
uint16_t msg_type;
|
|
|
|
uint16_t sender_id;
|
2017-06-26 12:41:24 -03:00
|
|
|
uint8_t index;
|
|
|
|
uint8_t pages;
|
2015-11-09 18:10:46 -04:00
|
|
|
uint8_t msg_len;
|
2017-06-26 12:41:24 -03:00
|
|
|
uint8_t res;
|
|
|
|
uint8_t data[48];
|
2015-11-09 18:10:46 -04:00
|
|
|
};
|
|
|
|
|
2017-06-26 12:41:24 -03:00
|
|
|
struct PACKED log_SbpRAWM {
|
2015-11-09 18:10:46 -04:00
|
|
|
LOG_PACKET_HEADER;
|
|
|
|
uint64_t time_us;
|
|
|
|
uint16_t msg_type;
|
2017-06-26 12:41:24 -03:00
|
|
|
uint16_t sender_id;
|
|
|
|
uint8_t index;
|
|
|
|
uint8_t pages;
|
|
|
|
uint8_t msg_len;
|
|
|
|
uint8_t res;
|
|
|
|
uint8_t data[104];
|
2015-11-09 18:10:46 -04:00
|
|
|
};
|
|
|
|
|
2017-06-29 11:17:10 -03:00
|
|
|
struct PACKED log_SbpEvent {
|
|
|
|
LOG_PACKET_HEADER;
|
|
|
|
uint64_t time_us;
|
|
|
|
uint16_t wn;
|
|
|
|
uint32_t tow;
|
|
|
|
int32_t ns_residual;
|
|
|
|
uint8_t level;
|
|
|
|
uint8_t quality;
|
|
|
|
};
|
|
|
|
|
2016-07-03 23:14:26 -03:00
|
|
|
struct PACKED log_Rally {
|
|
|
|
LOG_PACKET_HEADER;
|
|
|
|
uint64_t time_us;
|
|
|
|
uint8_t total;
|
|
|
|
uint8_t sequence;
|
|
|
|
int32_t latitude;
|
|
|
|
int32_t longitude;
|
|
|
|
int16_t altitude;
|
|
|
|
};
|
|
|
|
|
2017-04-09 08:17:17 -03:00
|
|
|
struct PACKED log_AOA_SSA {
|
|
|
|
LOG_PACKET_HEADER;
|
|
|
|
uint64_t time_us;
|
|
|
|
float AOA;
|
|
|
|
float SSA;
|
|
|
|
};
|
|
|
|
|
2017-04-18 11:43:03 -03:00
|
|
|
struct PACKED log_Beacon {
|
|
|
|
LOG_PACKET_HEADER;
|
|
|
|
uint64_t time_us;
|
|
|
|
uint8_t health;
|
|
|
|
uint8_t count;
|
|
|
|
float dist0;
|
|
|
|
float dist1;
|
|
|
|
float dist2;
|
|
|
|
float dist3;
|
|
|
|
float posx;
|
|
|
|
float posy;
|
|
|
|
float posz;
|
|
|
|
};
|
|
|
|
|
2017-07-14 14:00:13 -03:00
|
|
|
// proximity sensor logging
|
|
|
|
struct PACKED log_Proximity {
|
|
|
|
LOG_PACKET_HEADER;
|
|
|
|
uint64_t time_us;
|
|
|
|
uint8_t health;
|
|
|
|
float dist0;
|
|
|
|
float dist45;
|
|
|
|
float dist90;
|
|
|
|
float dist135;
|
|
|
|
float dist180;
|
|
|
|
float dist225;
|
|
|
|
float dist270;
|
|
|
|
float dist315;
|
|
|
|
float distup;
|
|
|
|
float closest_angle;
|
|
|
|
float closest_dist;
|
|
|
|
};
|
|
|
|
|
2017-11-15 23:20:17 -04:00
|
|
|
struct PACKED log_Performance {
|
|
|
|
LOG_PACKET_HEADER;
|
|
|
|
uint64_t time_us;
|
|
|
|
uint16_t num_long_running;
|
|
|
|
uint16_t num_loops;
|
|
|
|
uint32_t max_time;
|
|
|
|
uint32_t mem_avail;
|
2018-02-15 11:58:48 -04:00
|
|
|
uint16_t load;
|
2018-08-07 07:00:10 -03:00
|
|
|
uint32_t internal_errors;
|
2019-06-03 01:17:02 -03:00
|
|
|
uint32_t internal_error_count;
|
2019-05-16 04:57:54 -03:00
|
|
|
uint32_t spi_count;
|
|
|
|
uint32_t i2c_count;
|
2019-08-25 04:47:09 -03:00
|
|
|
uint32_t i2c_isr_count;
|
2019-09-17 05:13:44 -03:00
|
|
|
uint32_t extra_loop_us;
|
2017-11-15 23:20:17 -04:00
|
|
|
};
|
|
|
|
|
2017-07-26 14:09:33 -03:00
|
|
|
struct PACKED log_SRTL {
|
|
|
|
LOG_PACKET_HEADER;
|
|
|
|
uint64_t time_us;
|
|
|
|
uint8_t active;
|
|
|
|
uint16_t num_points;
|
|
|
|
uint16_t max_points;
|
|
|
|
uint8_t action;
|
|
|
|
float N;
|
|
|
|
float E;
|
|
|
|
float D;
|
|
|
|
};
|
|
|
|
|
2019-08-05 03:22:05 -03:00
|
|
|
struct PACKED log_OABendyRuler {
|
2019-06-08 01:59:04 -03:00
|
|
|
LOG_PACKET_HEADER;
|
|
|
|
uint64_t time_us;
|
2019-08-05 03:22:05 -03:00
|
|
|
uint8_t active;
|
|
|
|
uint16_t target_yaw;
|
|
|
|
uint16_t yaw;
|
2020-06-21 10:25:41 -03:00
|
|
|
bool resist_chg;
|
2019-08-05 03:22:05 -03:00
|
|
|
float margin;
|
|
|
|
int32_t final_lat;
|
|
|
|
int32_t final_lng;
|
|
|
|
int32_t oa_lat;
|
|
|
|
int32_t oa_lng;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct PACKED log_OADijkstra {
|
|
|
|
LOG_PACKET_HEADER;
|
|
|
|
uint64_t time_us;
|
|
|
|
uint8_t state;
|
2019-09-07 01:56:51 -03:00
|
|
|
uint8_t error_id;
|
2019-08-05 03:22:05 -03:00
|
|
|
uint8_t curr_point;
|
|
|
|
uint8_t tot_points;
|
2019-06-08 01:59:04 -03:00
|
|
|
int32_t final_lat;
|
|
|
|
int32_t final_lng;
|
|
|
|
int32_t oa_lat;
|
|
|
|
int32_t oa_lng;
|
|
|
|
};
|
|
|
|
|
2020-07-21 14:00:18 -03:00
|
|
|
struct PACKED log_SimpleAvoid {
|
|
|
|
LOG_PACKET_HEADER;
|
|
|
|
uint64_t time_us;
|
|
|
|
uint8_t state;
|
|
|
|
float desired_vel_x;
|
|
|
|
float desired_vel_y;
|
|
|
|
float modified_vel_x;
|
|
|
|
float modified_vel_y;
|
|
|
|
uint8_t backing_up;
|
|
|
|
};
|
|
|
|
|
2017-10-12 19:26:43 -03:00
|
|
|
struct PACKED log_DSTL {
|
|
|
|
LOG_PACKET_HEADER;
|
|
|
|
uint64_t time_us;
|
|
|
|
uint8_t stage;
|
|
|
|
float target_heading;
|
|
|
|
int32_t target_lat;
|
|
|
|
int32_t target_lng;
|
|
|
|
int32_t target_alt;
|
|
|
|
int16_t crosstrack_error;
|
|
|
|
int16_t travel_distance;
|
|
|
|
float l1_i;
|
|
|
|
int32_t loiter_sum_cd;
|
|
|
|
float desired;
|
|
|
|
float P;
|
|
|
|
float I;
|
|
|
|
float D;
|
|
|
|
};
|
|
|
|
|
2019-05-03 08:25:08 -03:00
|
|
|
struct PACKED log_Arm_Disarm {
|
|
|
|
LOG_PACKET_HEADER;
|
|
|
|
uint64_t time_us;
|
|
|
|
uint8_t arm_state;
|
2020-02-11 21:25:28 -04:00
|
|
|
uint32_t arm_checks;
|
2020-01-07 01:04:31 -04:00
|
|
|
uint8_t forced;
|
|
|
|
uint8_t method;
|
2019-05-03 08:25:08 -03:00
|
|
|
};
|
2015-11-09 18:10:46 -04:00
|
|
|
|
2020-07-24 02:59:41 -03:00
|
|
|
struct PACKED log_Winch {
|
|
|
|
LOG_PACKET_HEADER;
|
|
|
|
uint64_t time_us;
|
|
|
|
uint8_t healthy;
|
|
|
|
uint8_t thread_end;
|
|
|
|
uint8_t moving;
|
|
|
|
uint8_t clutch;
|
|
|
|
uint8_t mode;
|
|
|
|
float desired_length;
|
|
|
|
float length;
|
|
|
|
float desired_rate;
|
|
|
|
uint16_t tension;
|
|
|
|
float voltage;
|
|
|
|
int8_t temp;
|
|
|
|
};
|
|
|
|
|
2015-12-07 20:51:46 -04:00
|
|
|
// FMT messages define all message formats other than FMT
|
|
|
|
// UNIT messages define units which can be referenced by FMTU messages
|
|
|
|
// FMTU messages associate types (e.g. centimeters/second/second) to FMT message fields
|
|
|
|
|
2017-04-05 03:37:34 -03:00
|
|
|
#define ACC_LABELS "TimeUS,SampleUS,AccX,AccY,AccZ"
|
2015-12-07 20:51:46 -04:00
|
|
|
#define ACC_FMT "QQfff"
|
|
|
|
#define ACC_UNITS "ssnnn"
|
|
|
|
#define ACC_MULTS "FF000"
|
2017-04-05 03:37:34 -03:00
|
|
|
|
2019-01-18 00:24:08 -04:00
|
|
|
// see "struct sensor" in AP_Baro.h and "Write_Baro":
|
2019-07-30 21:07:34 -03:00
|
|
|
#define BARO_LABELS "TimeUS,Alt,Press,Temp,CRt,SMS,Offset,GndTemp,Health"
|
|
|
|
#define BARO_FMT "QffcfIffB"
|
|
|
|
#define BARO_UNITS "smPOnsmO-"
|
|
|
|
#define BARO_MULTS "F00B0C?0-"
|
2017-04-05 03:37:34 -03:00
|
|
|
|
2019-09-03 16:40:48 -03:00
|
|
|
#define GPA_LABELS "TimeUS,VDop,HAcc,VAcc,SAcc,YAcc,VV,SMS,Delta"
|
|
|
|
#define GPA_FMT "QCCCCfBIH"
|
|
|
|
#define GPA_UNITS "smmmnd-ss"
|
|
|
|
#define GPA_MULTS "FBBBB0-CC"
|
2017-04-05 03:37:34 -03:00
|
|
|
|
2019-01-18 00:24:08 -04:00
|
|
|
// see "struct GPS_State" and "Write_GPS":
|
2017-05-28 04:12:50 -03:00
|
|
|
#define GPS_LABELS "TimeUS,Status,GMS,GWk,NSats,HDop,Lat,Lng,Alt,Spd,GCrs,VZ,Yaw,U"
|
|
|
|
#define GPS_FMT "QBIHBcLLeffffB"
|
|
|
|
#define GPS_UNITS "s---SmDUmnhnh-"
|
|
|
|
#define GPS_MULTS "F---0BGGB000--"
|
2017-04-05 03:37:34 -03:00
|
|
|
|
|
|
|
#define GYR_LABELS "TimeUS,SampleUS,GyrX,GyrY,GyrZ"
|
|
|
|
#define GYR_FMT "QQfff"
|
2015-12-07 20:51:46 -04:00
|
|
|
#define GYR_UNITS "ssEEE"
|
|
|
|
#define GYR_MULTS "FF000"
|
2017-04-05 03:37:34 -03:00
|
|
|
|
|
|
|
#define IMT_LABELS "TimeUS,DelT,DelvT,DelaT,DelAX,DelAY,DelAZ,DelVX,DelVY,DelVZ"
|
|
|
|
#define IMT_FMT "Qfffffffff"
|
2015-12-07 20:51:46 -04:00
|
|
|
#define IMT_UNITS "ssssrrrnnn"
|
|
|
|
#define IMT_MULTS "FF00000000"
|
2017-04-05 03:37:34 -03:00
|
|
|
|
2017-10-10 20:36:04 -03:00
|
|
|
#define ISBH_LABELS "TimeUS,N,type,instance,mul,smp_cnt,SampleUS,smp_rate"
|
|
|
|
#define ISBH_FMT "QHBBHHQf"
|
2015-12-07 20:51:46 -04:00
|
|
|
#define ISBH_UNITS "s-----sz"
|
|
|
|
#define ISBH_MULTS "F-----F-"
|
2017-09-01 08:05:16 -03:00
|
|
|
|
|
|
|
#define ISBD_LABELS "TimeUS,N,seqno,x,y,z"
|
|
|
|
#define ISBD_FMT "QHHaaa"
|
2015-12-07 20:51:46 -04:00
|
|
|
#define ISBD_UNITS "s--ooo"
|
|
|
|
#define ISBD_MULTS "F--???"
|
2017-09-01 08:05:16 -03:00
|
|
|
|
2017-05-01 00:00:46 -03:00
|
|
|
#define IMU_LABELS "TimeUS,GyrX,GyrY,GyrZ,AccX,AccY,AccZ,EG,EA,T,GH,AH,GHz,AHz"
|
|
|
|
#define IMU_FMT "QffffffIIfBBHH"
|
2015-12-07 20:51:46 -04:00
|
|
|
#define IMU_UNITS "sEEEooo--O--zz"
|
|
|
|
#define IMU_MULTS "F000000-----00"
|
2017-04-05 03:37:34 -03:00
|
|
|
|
|
|
|
#define MAG_LABELS "TimeUS,MagX,MagY,MagZ,OfsX,OfsY,OfsZ,MOfsX,MOfsY,MOfsZ,Health,S"
|
|
|
|
#define MAG_FMT "QhhhhhhhhhBI"
|
2015-12-07 20:51:46 -04:00
|
|
|
#define MAG_UNITS "sGGGGGGGGG-s"
|
|
|
|
#define MAG_MULTS "FCCCCCCCCC-F"
|
2017-04-05 03:37:34 -03:00
|
|
|
|
2020-05-10 04:16:23 -03:00
|
|
|
#define PID_LABELS "TimeUS,Tar,Act,Err,P,I,D,FF,Dmod"
|
|
|
|
#define PID_FMT "Qffffffff"
|
|
|
|
#define PID_UNITS "s--------"
|
|
|
|
#define PID_MULTS "F--------"
|
2017-04-05 03:37:34 -03:00
|
|
|
|
2019-12-06 03:12:50 -04:00
|
|
|
#define QUAT_LABELS "TimeUS,C,Q1,Q2,Q3,Q4"
|
|
|
|
#define QUAT_FMT "QBffff"
|
|
|
|
#define QUAT_UNITS "s#????"
|
|
|
|
#define QUAT_MULTS "F-????"
|
2017-04-15 07:37:00 -03:00
|
|
|
|
2019-02-03 11:06:55 -04:00
|
|
|
#define ARSP_LABELS "TimeUS,Airspeed,DiffPress,Temp,RawPress,Offset,U,Health,Hfp,Pri"
|
|
|
|
#define ARSP_FMT "QffcffBBfB"
|
|
|
|
#define ARSP_UNITS "snPOPP----"
|
|
|
|
#define ARSP_MULTS "F00B00----"
|
2017-11-03 07:28:20 -03:00
|
|
|
|
AP_Logger: add documentation for ACC1,ACC2,ACC3,DMS,GPA,GPA2,GPS2,GYR1,GYR2,GYR3,MAVC,PM
2020-04-03 22:32:14 -03:00
|
|
|
// @LoggerMessage: ACC1,ACC2,ACC3
|
|
|
|
// @Description: IMU accelerometer data
|
|
|
|
// @Field: TimeUS: Time since system startup
|
|
|
|
// @Field: SampleUS: time since system startup this sample was taken
|
|
|
|
// @Field: AccX: acceleration along X axis
|
|
|
|
// @Field: AccY: acceleration along Y axis
|
|
|
|
// @Field: AccZ: acceleration along Z axis
|
|
|
|
|
2020-04-12 04:19:56 -03:00
|
|
|
// @LoggerMessage: ADSB
|
|
|
|
// @Description: Automatic Dependant Serveillance - Broadcast detected vehicle information
|
|
|
|
// @Field: TimeUS: Time since system startup
|
|
|
|
// @Field: ICAO_address: Transponder address
|
|
|
|
// @Field: Lat: Vehicle latitude
|
|
|
|
// @Field: Lng: Vehicle longitude
|
|
|
|
// @Field: Alt: Vehicle altitude
|
|
|
|
// @Field: Heading: Vehicle heading
|
|
|
|
// @Field: Hor_vel: Vehicle horizontal velocity
|
|
|
|
// @Field: Ver_vel: Vehicle vertical velocity
|
|
|
|
// @Field: Squark: Transponder squawk code
|
|
|
|
|
2020-04-05 07:50:34 -03:00
|
|
|
// @LoggerMessage: AHR2
|
|
|
|
// @Description: Backup AHRS data
|
|
|
|
// @Field: TimeUS: Time since system startup
|
|
|
|
// @Field: Roll: Estimated roll
|
|
|
|
// @Field: Pitch: Estimated pitch
|
|
|
|
// @Field: Yaw: Estimated yaw
|
|
|
|
// @Field: Alt: Estimated altitude
|
|
|
|
// @Field: Lat: Estimated latitude
|
|
|
|
// @Field: Lng: Estimated longitude
|
|
|
|
// @Field: Q1: Estimated attitude quaternion component 1
|
|
|
|
// @Field: Q2: Estimated attitude quaternion component 2
|
|
|
|
// @Field: Q3: Estimated attitude quaternion component 3
|
|
|
|
// @Field: Q4: Estimated attitude quaternion component 4
|
|
|
|
|
AP_Logger: add documentation for ACC1,ACC2,ACC3,DMS,GPA,GPA2,GPS2,GYR1,GYR2,GYR3,MAVC,PM
2020-04-03 22:32:14 -03:00
|
|
|
// @LoggerMessage: ARM
|
|
|
|
// @Description: Arming status changes
|
|
|
|
// @Field: TimeUS: Time since system startup
|
|
|
|
// @Field: ArmState: true if vehicle is now armed
|
|
|
|
// @Field: ArmChecks: arming bitmask at time of arming
|
|
|
|
// @Field: Forced: true if arm/disarm was forced
|
|
|
|
// @Field: Method: method used for arming
|
|
|
|
|
2020-04-05 07:50:34 -03:00
|
|
|
// @LoggerMessage: ARSP,ASP2
|
|
|
|
// @Description: Airspeed sensor data
|
|
|
|
// @Field: TimeUS: Time since system startup
|
|
|
|
// @Field: Airspeed: Current airspeed
|
|
|
|
// @Field: DiffPress: Pressure difference between static and dynamic port
|
|
|
|
// @Field: Temp: Temperature used for calculation
|
|
|
|
// @Field: RawPress: Raw pressure less offset
|
|
|
|
// @Field: Offset: Offset from parameter
|
|
|
|
// @Field: U: True if sensor is being used
|
|
|
|
// @Field: Health: True if sensor is healthy
|
2020-04-07 04:35:05 -03:00
|
|
|
// @Field: Hfp: Probability sensor has failed
|
2020-04-05 07:50:34 -03:00
|
|
|
// @Field: Pri: True if sensor is the primary sensor
|
|
|
|
|
2020-03-19 23:57:40 -03:00
|
|
|
// @LoggerMessage: ATT
|
|
|
|
// @Description: Canonical vehicle attitude
|
2020-04-07 04:35:05 -03:00
|
|
|
// @Field: TimeUS: Time since system startup
|
2020-03-19 23:57:40 -03:00
|
|
|
// @Field: DesRoll: vehicle desired roll
|
|
|
|
// @Field: Roll: achieved vehicle roll
|
|
|
|
// @Field: DesPitch: vehicle desired pitch
|
|
|
|
// @Field: Pitch: achieved vehicle pitch
|
|
|
|
// @Field: DesYaw: vehicle desired yaw
|
|
|
|
// @Field: Yaw: achieved vehicle yaw
|
|
|
|
// @Field: ErrRP: lowest estimated gyro drift error
|
|
|
|
// @Field: ErrYaw: difference between measured yaw and DCM yaw estimate
|
|
|
|
|
2020-04-02 20:07:46 -03:00
|
|
|
// @LoggerMessage: BARO,BAR2,BAR3
|
2020-03-19 23:57:40 -03:00
|
|
|
// @Description: Gathered Barometer data
|
2020-04-07 04:35:05 -03:00
|
|
|
// @Field: TimeUS: Time since system startup
|
2020-03-19 23:57:40 -03:00
|
|
|
// @Field: Alt: calculated altitude
|
|
|
|
// @Field: Press: measured atmospheric pressure
|
|
|
|
// @Field: Temp: measured atmospheric temperature
|
|
|
|
// @Field: CRt: derived climb rate from primary barometer
|
|
|
|
// @Field: SMS: time last sample was taken
|
|
|
|
// @Field: Offset: raw adjustment of barometer altitude, zeroed on calibration, possibly set by GCS
|
|
|
|
// @Field: GndTemp: temperature on ground, specified by parameter or measured while on ground
|
|
|
|
// @Field: Health: true if barometer is considered healthy
|
|
|
|
|
|
|
|
// @LoggerMessage: BAT
|
|
|
|
// @Description: Gathered battery data
|
2020-04-07 04:35:05 -03:00
|
|
|
// @Field: TimeUS: Time since system startup
|
2020-03-20 23:44:24 -03:00
|
|
|
// @Field: Instance: battery instance number
|
2020-03-19 23:57:40 -03:00
|
|
|
// @Field: Volt: measured voltage
|
|
|
|
// @Field: VoltR: estimated resting voltage
|
|
|
|
// @Field: Curr: measured current
|
|
|
|
// @Field: CurrTot: current * time
|
|
|
|
// @Field: EnrgTot: energy this battery has produced
|
|
|
|
// @Field: Temp: measured temperature
|
|
|
|
// @Field: Res: estimated temperature resistance
|
2019-10-18 00:07:06 -03:00
|
|
|
|
2020-04-12 04:19:56 -03:00
|
|
|
// @LoggerMessage: BCL
|
|
|
|
// @Description: Battery cell voltage information
|
|
|
|
// @Field: TimeUS: Time since system startup
|
|
|
|
// @Field: Instance: battery instance number
|
|
|
|
// @Field: Volt: battery voltage
|
|
|
|
// @Field: V1: first cell voltage
|
|
|
|
// @Field: V2: second cell voltage
|
|
|
|
// @Field: V3: third cell voltage
|
|
|
|
// @Field: V4: fourth cell voltage
|
|
|
|
// @Field: V5: fifth cell voltage
|
|
|
|
// @Field: V6: sixth cell voltage
|
|
|
|
// @Field: V7: seventh cell voltage
|
|
|
|
// @Field: V8: eighth cell voltage
|
|
|
|
// @Field: V9: ninth cell voltage
|
|
|
|
// @Field: V10: tenth cell voltage
|
2020-06-03 00:29:31 -03:00
|
|
|
// @Field: V11: eleventh cell voltage
|
|
|
|
// @Field: V12: twelfth cell voltage
|
2020-04-12 04:19:56 -03:00
|
|
|
|
|
|
|
// @LoggerMessage: BCN
|
|
|
|
// @Description: Beacon informtaion
|
|
|
|
// @Field: TimeUS: Time since system startup
|
|
|
|
// @Field: Health: True if beacon sensor is healthy
|
|
|
|
// @Field: Cnt: Number of beacons being used
|
|
|
|
// @Field: D0: Distance to first beacon
|
|
|
|
// @Field: D1: Distance to second beacon
|
|
|
|
// @Field: D2: Distance to third beacon
|
|
|
|
// @Field: D3: Distance to fouth beacon
|
|
|
|
// @Field: PosX: Calculated beacon position, x-axis
|
|
|
|
// @Field: PosY: Calculated beacon position, y-axis
|
|
|
|
// @Field: PosZ: Calculated beacon position, z-axis
|
|
|
|
|
2020-04-05 07:50:34 -03:00
|
|
|
// @LoggerMessage: CAM,TRIG
|
|
|
|
// @Description: Camera shutter information
|
|
|
|
// @Field: TimeUS: Time since system startup
|
|
|
|
// @Field: GPSTime: milliseconds since start of GPS week
|
|
|
|
// @Field: GPSWeek: weeks since 5 Jan 1980
|
|
|
|
// @Field: Lat: current latitude
|
|
|
|
// @Field: Lng: current longitude
|
|
|
|
// @Field: Alt: current altitude
|
|
|
|
// @Field: RelAlt: current altitude relative to home
|
|
|
|
// @Field: GPSAlt: altitude as reported by GPS
|
|
|
|
// @Field: Roll: current vehicle roll
|
|
|
|
// @Field: Pitch: current vehicle pitch
|
|
|
|
// @Field: Yaw: current vehicle yaw
|
|
|
|
|
2020-04-12 04:19:56 -03:00
|
|
|
// @LoggerMessage: CESC
|
|
|
|
// @Description: CAN ESC data
|
|
|
|
// @Field: TimeUS: Time since system startup
|
|
|
|
// @Field: Id: ESC identifier
|
|
|
|
// @Field: ECnt: Error count
|
|
|
|
// @Field: Voltage: Battery voltage measurement
|
|
|
|
// @Field: Curr: Battery current measurement
|
|
|
|
// @Field: Temp: Temperature
|
|
|
|
// @Field: RPM: Measured RPM
|
|
|
|
// @Field: Pow: Rated power output
|
|
|
|
|
2020-04-05 07:50:34 -03:00
|
|
|
// @LoggerMessage: CMD
|
|
|
|
// @Description: Executed mission command information
|
|
|
|
// @Field: TimeUS: Time since system startup
|
|
|
|
// @Field: CTot: Total number of mission commands
|
|
|
|
// @Field: CNum: This command's offset in mission
|
|
|
|
// @Field: CId: Command type
|
|
|
|
// @Field: Prm1: Parameter 1
|
|
|
|
// @Field: Prm2: Parameter 2
|
|
|
|
// @Field: Prm3: Parameter 3
|
|
|
|
// @Field: Prm4: Parameter 4
|
|
|
|
// @Field: Lat: Command latitude
|
|
|
|
// @Field: Lng: Command longitude
|
|
|
|
// @Field: Alt: Command altitude
|
|
|
|
// @Field: Frame: Frame used for position
|
|
|
|
|
|
|
|
// @LoggerMessage: CSRV
|
|
|
|
// @Description: Servo feedback data
|
|
|
|
// @Field: TimeUS: Time since system startup
|
|
|
|
// @Field: Id: Servo number this data relates to
|
|
|
|
// @Field: Pos: Current servo position
|
2020-04-07 04:35:05 -03:00
|
|
|
// @Field: Force: Force being applied
|
2020-04-05 07:50:34 -03:00
|
|
|
// @Field: Speed: Current servo movement speed
|
|
|
|
// @Field: Pow: Amount of rated power being applied
|
|
|
|
|
AP_Logger: add documentation for ACC1,ACC2,ACC3,DMS,GPA,GPA2,GPS2,GYR1,GYR2,GYR3,MAVC,PM
2020-04-03 22:32:14 -03:00
|
|
|
// @LoggerMessage: DMS
|
|
|
|
// @Description: DataFlash-Over-MAVLink statistics
|
2020-04-04 21:16:28 -03:00
|
|
|
// @Field: TimeUS: Time since system startup
|
AP_Logger: add documentation for ACC1,ACC2,ACC3,DMS,GPA,GPA2,GPS2,GYR1,GYR2,GYR3,MAVC,PM
2020-04-03 22:32:14 -03:00
|
|
|
// @Field: N: Current block number
|
|
|
|
// @Field: Dp: Number of times we rejected a write to the backend
|
|
|
|
// @Field: RT: Number of blocks sent from the retry queue
|
|
|
|
// @Field: RS: Number of resends of unacknowledged data made
|
|
|
|
// @Field: Fa: Average number of blocks on the free list
|
|
|
|
// @Field: Fmn: Minimum number of blocks on the free list
|
|
|
|
// @Field: Fmx: Maximum number of blocks on the free list
|
|
|
|
// @Field: Pa: Average number of blocks on the pending list
|
|
|
|
// @Field: Pmn: Minimum number of blocks on the pending list
|
|
|
|
// @Field: Pmx: Maximum number of blocks on the pending list
|
|
|
|
// @Field: Sa: Average number of blocks on the sent list
|
|
|
|
// @Field: Smn: Minimum number of blocks on the sent list
|
|
|
|
// @Field: Smx: Maximum number of blocks on the sent list
|
|
|
|
|
AP_Logger: add documentation for more log messages
ERR,DSF,EV,SIM,ORGN,POS,LGR,MON,TSYN,IMU,IMUT
2020-03-21 09:21:59 -03:00
|
|
|
// @LoggerMessage: DSF
|
|
|
|
// @Description: Onboard logging statistics
|
|
|
|
// @Field: TimeUS: Time since system startup
|
|
|
|
// @Field: Dp: Number of times we rejected a write to the backend
|
|
|
|
// @Field: Blk: Current block number
|
|
|
|
// @Field: Bytes: Current write offset
|
|
|
|
// @Field: FMn: Minimum free space in write buffer in last time period
|
|
|
|
// @Field: FMx: Maximum free space in write buffer in last time period
|
|
|
|
// @Field: FAv: Average free space in write buffer in last time period
|
|
|
|
|
2020-04-06 23:56:14 -03:00
|
|
|
// @LoggerMessage: DSTL
|
|
|
|
// @Description: Deepstall Landing data
|
|
|
|
// @Field: TimeUS: Time since system startup
|
|
|
|
// @Field: Stg: Deepstall landing stage
|
|
|
|
// @Field: THdg: Target heading
|
|
|
|
// @Field: Lat: Landing point latitude
|
|
|
|
// @Field: Lng: Landing point longitude
|
|
|
|
// @Field: Alt: Landing point altitude
|
|
|
|
// @Field: XT: Crosstrack error
|
|
|
|
// @Field: Travel: Expected travel distance vehicle will travel from this point
|
|
|
|
// @Field: L1I: L1 controller crosstrack integrator value
|
|
|
|
// @Field: Loiter: wind estimate loiter angle flown
|
|
|
|
// @Field: Des: Deepstall steering PID desired value
|
|
|
|
// @Field: P: Deepstall steering PID Proportional response component
|
|
|
|
// @Field: I: Deepstall steering PID Integral response component
|
|
|
|
// @Field: D: Deepstall steering PID Derivative response component
|
|
|
|
|
AP_Logger: add documentation for more log messages
ERR,DSF,EV,SIM,ORGN,POS,LGR,MON,TSYN,IMU,IMUT
2020-03-21 09:21:59 -03:00
|
|
|
// @LoggerMessage: ERR
|
|
|
|
// @Description: Specifically coded error messages
|
|
|
|
// @Field: TimeUS: Time since system startup
|
2020-04-07 04:35:05 -03:00
|
|
|
// @Field: Subsys: Subsystem in which the error occurred
|
AP_Logger: add documentation for more log messages
ERR,DSF,EV,SIM,ORGN,POS,LGR,MON,TSYN,IMU,IMUT
2020-03-21 09:21:59 -03:00
|
|
|
// @Field: ECode: Subsystem-specific error code
|
|
|
|
|
2020-03-26 21:26:17 -03:00
|
|
|
// @LoggerMessage: ESC
|
|
|
|
// @Description: Feedback received from ESCs
|
|
|
|
// @Field: TimeUS: microseconds since system startup
|
|
|
|
// @Field: Instance: ESC instance number
|
|
|
|
// @Field: RPM: reported motor rotation rate
|
|
|
|
// @Field: Volt: Perceived input voltage for the ESC
|
|
|
|
// @Field: Curr: Perceived current through the ESC
|
|
|
|
// @Field: Temp: ESC temperature
|
|
|
|
// @Field: CTot: current consumed total
|
|
|
|
// @Field: MotTemp: measured motor temperature
|
|
|
|
|
AP_Logger: add documentation for more log messages
ERR,DSF,EV,SIM,ORGN,POS,LGR,MON,TSYN,IMU,IMUT
2020-03-21 09:21:59 -03:00
|
|
|
// @LoggerMessage: EV
|
|
|
|
// @Description: Specifically coded event messages
|
|
|
|
// @Field: TimeUS: Time since system startup
|
|
|
|
// @Field: Id: Event identifier
|
|
|
|
|
2019-10-18 00:07:06 -03:00
|
|
|
// @LoggerMessage: FMT
|
|
|
|
// @Description: Message defining the format of messages in this file
|
|
|
|
// @URL: https://ardupilot.org/dev/docs/code-overview-adding-a-new-log-message.html
|
2020-03-20 23:44:24 -03:00
|
|
|
// @Field: Type: unique-to-this-log identifier for message being defined
|
|
|
|
// @Field: Length: the number of bytes taken up by this message (including all headers)
|
|
|
|
// @Field: Name: name of the message being defined
|
|
|
|
// @Field: Format: character string defining the C-storage-type of the fields in this message
|
|
|
|
// @Field: Columns: the labels of the message being defined
|
2019-10-18 00:07:06 -03:00
|
|
|
|
2020-03-25 09:33:03 -03:00
|
|
|
// @LoggerMessage: FMTU
|
|
|
|
// @Description: Message defining units and multipliers used for fields of other messages
|
2020-04-07 04:35:05 -03:00
|
|
|
// @Field: TimeUS: Time since system startup
|
2020-03-25 09:33:03 -03:00
|
|
|
// @Field: FmtType: numeric reference to associated FMT message
|
|
|
|
// @Field: UnitIds: each character refers to a UNIT message. The unit at an offset corresponds to the field at the same offset in FMT.Format
|
|
|
|
// @Field: MultIds: each character refers to a MULT message. The multiplier at an offset corresponds to the field at the same offset in FMT.Format
|
|
|
|
|
AP_Logger: add documentation for ACC1,ACC2,ACC3,DMS,GPA,GPA2,GPS2,GYR1,GYR2,GYR3,MAVC,PM
2020-04-03 22:32:14 -03:00
|
|
|
// @LoggerMessage: GPA,GPA2
|
|
|
|
// @Description: GPS accuracy information
|
2020-04-07 04:35:05 -03:00
|
|
|
// @Field: TimeUS: Time since system startup
|
AP_Logger: add documentation for ACC1,ACC2,ACC3,DMS,GPA,GPA2,GPS2,GYR1,GYR2,GYR3,MAVC,PM
2020-04-03 22:32:14 -03:00
|
|
|
// @Field: VDop: vertical degree of procession
|
|
|
|
// @Field: HAcc: horizontal position accuracy
|
|
|
|
// @Field: VAcc: vertical position accuracy
|
|
|
|
// @Field: SAcc: speed accuracy
|
|
|
|
// @Field: YAcc: yaw accuracy
|
|
|
|
// @Field: VV: true if vertical velocity is available
|
|
|
|
// @Field: SMS: time since system startup this sample was taken
|
|
|
|
// @Field: Delta: system time delta between the last two reported positions
|
|
|
|
|
2020-04-23 20:43:57 -03:00
|
|
|
//note: GPAB is a copy of GPA and GPA2!
|
|
|
|
|
|
|
|
// @LoggerMessage: GPAB
|
|
|
|
// @Description: Blended GPS accuracy information
|
|
|
|
// @Field: TimeUS: Time since system startup
|
|
|
|
// @Field: VDop: vertical degree of procession
|
|
|
|
// @Field: HAcc: horizontal position accuracy
|
|
|
|
// @Field: VAcc: vertical position accuracy
|
|
|
|
// @Field: SAcc: speed accuracy
|
|
|
|
// @Field: YAcc: yaw accuracy
|
|
|
|
// @Field: VV: true if vertical velocity is available
|
|
|
|
// @Field: SMS: time since system startup this sample was taken
|
|
|
|
// @Field: Delta: system time delta between the last two reported positions
|
|
|
|
|
AP_Logger: add documentation for ACC1,ACC2,ACC3,DMS,GPA,GPA2,GPS2,GYR1,GYR2,GYR3,MAVC,PM
2020-04-03 22:32:14 -03:00
|
|
|
// @LoggerMessage: GPS,GPS2
|
2020-03-17 22:13:16 -03:00
|
|
|
// @Description: Information received from GNSS systems attached to the autopilot
|
2020-04-07 04:35:05 -03:00
|
|
|
// @Field: TimeUS: Time since system startup
|
2020-03-17 22:13:16 -03:00
|
|
|
// @Field: Status: GPS Fix type; 2D fix, 3D fix etc.
|
|
|
|
// @Field: GMS: milliseconds since start of GPS Week
|
|
|
|
// @Field: GWk: weeks since 5 Jan 1980
|
|
|
|
// @Field: NSats: number of satellites visible
|
|
|
|
// @Field: HDop: horizontal precision
|
|
|
|
// @Field: Lat: latitude
|
|
|
|
// @Field: Lng: longitude
|
|
|
|
// @Field: Alt: altitude
|
2020-04-15 18:44:12 -03:00
|
|
|
// @Field: Spd: ground speed
|
2020-03-17 22:13:16 -03:00
|
|
|
// @Field: GCrs: ground course
|
2020-04-15 18:44:12 -03:00
|
|
|
// @Field: VZ: vertical speed
|
2020-03-17 22:13:16 -03:00
|
|
|
// @Field: Yaw: vehicle yaw
|
|
|
|
// @Field: U: boolean value indicating whether this GPS is in use
|
2020-04-23 20:43:57 -03:00
|
|
|
|
|
|
|
// Note: GPSB is a copy of GPS!
|
|
|
|
|
|
|
|
// @LoggerMessage: GPSB
|
|
|
|
// @Description: Information blended from GNSS systems attached to the autopilot
|
|
|
|
// @Field: TimeUS: Time since system startup
|
|
|
|
// @Field: Status: GPS Fix type; 2D fix, 3D fix etc.
|
|
|
|
// @Field: GMS: milliseconds since start of GPS Week
|
|
|
|
// @Field: GWk: weeks since 5 Jan 1980
|
|
|
|
// @Field: NSats: number of satellites visible
|
|
|
|
// @Field: HDop: horizontal precision
|
|
|
|
// @Field: Lat: latitude
|
|
|
|
// @Field: Lng: longitude
|
|
|
|
// @Field: Alt: altitude
|
|
|
|
// @Field: Spd: ground speed
|
|
|
|
// @Field: GCrs: ground course
|
|
|
|
// @Field: VZ: vertical speed
|
|
|
|
// @Field: Yaw: vehicle yaw
|
|
|
|
// @Field: U: boolean value indicating whether this GPS is in use
|
2020-03-17 22:13:16 -03:00
|
|
|
|
2020-07-20 02:31:38 -03:00
|
|
|
// @LoggerMessage: GRAW
|
|
|
|
// @Description: Raw uBlox data
|
|
|
|
// @Field: TimeUS: Time since system startup
|
|
|
|
// @Field: WkMS: receiver TimeOfWeek measurement
|
|
|
|
// @Field: Week: GPS week
|
|
|
|
// @Field: numSV: number of space vehicles seen
|
|
|
|
// @Field: sv: space vehicle number of first vehicle
|
|
|
|
// @Field: cpMes: carrier phase measurement
|
|
|
|
// @Field: prMes: pseudorange measurement
|
|
|
|
// @Field: doMes: Doppler measurement
|
|
|
|
// @Field: mesQI: measurement quality index
|
|
|
|
// @Field: cno: carrier-to-noise density ratio
|
|
|
|
// @Field: lli: loss of lock indicator
|
|
|
|
|
|
|
|
// @LoggerMessage: GRXH
|
|
|
|
// @Description: Raw uBlox data - header
|
|
|
|
// @Field: TimeUS: Time since system startup
|
|
|
|
// @Field: rcvTime: receiver TimeOfWeek measurement
|
|
|
|
// @Field: week: GPS week
|
|
|
|
// @Field: leapS: GPS leap seconds
|
|
|
|
// @Field: numMeas: number of space-vehicle measurements to follow
|
|
|
|
// @Field: recStat: receiver tracking status bitfield
|
|
|
|
|
|
|
|
// @LoggerMessage: GRXS
|
|
|
|
// @Description: Raw uBlox data - space-vehicle data
|
|
|
|
// @Field: TimeUS: Time since system startup
|
|
|
|
// @Field: prMes: Pseudorange measurement
|
|
|
|
// @Field: cpMes: Carrier phase measurement
|
|
|
|
// @Field: doMes: Doppler measurement
|
|
|
|
// @Field: gnss: GNSS identifier
|
|
|
|
// @Field: sv: Satellite identifier
|
|
|
|
// @Field: freq: GLONASS frequency slot
|
|
|
|
// @Field: lock: carrier phase locktime counter
|
|
|
|
// @Field: cno: carrier-to-noise density ratio
|
|
|
|
// @Field: prD: estimated pseudorange measurement standard deviation
|
|
|
|
// @Field: cpD: estimated carrier phase measurement standard deviation
|
|
|
|
// @Field: doD: estimated Doppler measurement standard deviation
|
|
|
|
// @Field: trk: tracking status bitfield
|
|
|
|
|
AP_Logger: add documentation for ACC1,ACC2,ACC3,DMS,GPA,GPA2,GPS2,GYR1,GYR2,GYR3,MAVC,PM
2020-04-03 22:32:14 -03:00
|
|
|
// @LoggerMessage: GYR1,GYR2,GYR3
|
|
|
|
// @Description: IMU gyroscope data
|
|
|
|
// @Field: TimeUS: Time since system startup
|
|
|
|
// @Field: SampleUS: time since system startup this sample was taken
|
|
|
|
// @Field: GyrX: measured rotation rate about X axis
|
|
|
|
// @Field: GyrY: measured rotation rate about Y axis
|
|
|
|
// @Field: GyrZ: measured rotation rate about Z axis
|
|
|
|
|
AP_Logger: add documentation for more log messages
ERR,DSF,EV,SIM,ORGN,POS,LGR,MON,TSYN,IMU,IMUT
2020-03-21 09:21:59 -03:00
|
|
|
// @LoggerMessage: IMT,IMT2,IMT3
|
|
|
|
// @Description: Inertial Measurement Unit timing data
|
|
|
|
// @Field: TimeUS: Time since system startup
|
|
|
|
// @Field: DelT: Delta time
|
|
|
|
// @Field: DelvT: Delta velocity accumulation time
|
|
|
|
// @Field: DelaT: Delta angle accumulation time
|
|
|
|
// @Field: DelAX: Accumulated delta angle X
|
|
|
|
// @Field: DelAY: Accumulated delta angle Y
|
|
|
|
// @Field: DelAZ: Accumulated delta angle Z
|
|
|
|
// @Field: DelVX: Accumulated delta velocity X
|
|
|
|
// @Field: DelVY: Accumulated delta velocity Y
|
|
|
|
// @Field: DelVZ: Accumulated delta velocity Z
|
|
|
|
|
|
|
|
// @LoggerMessage: IMU,IMU2,IMU3
|
|
|
|
// @Description: Inertial Measurement Unit data
|
|
|
|
// @Field: TimeUS: Time since system startup
|
|
|
|
// @Field: GyrX: measured rotation rate about X axis
|
|
|
|
// @Field: GyrY: measured rotation rate about Y axis
|
|
|
|
// @Field: GyrZ: measured rotation rate about Z axis
|
|
|
|
// @Field: AccX: acceleration along X axis
|
|
|
|
// @Field: AccY: acceleration along Y axis
|
|
|
|
// @Field: AccZ: acceleration along Z axis
|
|
|
|
// @Field: EG: gyroscope error count
|
|
|
|
// @Field: EA: accelerometer error count
|
|
|
|
// @Field: T: IMU temperature
|
|
|
|
// @Field: GH: gyroscope health
|
|
|
|
// @Field: AH: accelerometer health
|
|
|
|
// @Field: GHz: gyroscope measurement rate
|
|
|
|
// @Field: AHz: accelerometer measurement rate
|
|
|
|
|
|
|
|
// @LoggerMessage: LGR
|
|
|
|
// @Description: Landing gear information
|
|
|
|
// @Field: TimeUS: Time since system startup
|
|
|
|
// @Field: LandingGear: Current landing gear state
|
|
|
|
// @Field: WeightOnWheels: True if there is weight on wheels
|
|
|
|
|
2020-03-19 23:57:40 -03:00
|
|
|
// @LoggerMessage: MAG,MAG2,MAG3
|
|
|
|
// @Description: Information received from compasses
|
2020-04-07 04:35:05 -03:00
|
|
|
// @Field: TimeUS: Time since system startup
|
2020-03-19 23:57:40 -03:00
|
|
|
// @Field: MagX: magnetic field strength in body frame
|
|
|
|
// @Field: MagY: magnetic field strength in body frame
|
|
|
|
// @Field: MagZ: magnetic field strength in body frame
|
|
|
|
// @Field: OfsX: magnetic field offset in body frame
|
|
|
|
// @Field: OfsY: magnetic field offset in body frame
|
|
|
|
// @Field: OfsZ: magnetic field offset in body frame
|
2020-03-20 23:44:24 -03:00
|
|
|
// @Field: MOfsX: motor interference magnetic field offset in body frame
|
|
|
|
// @Field: MOfsY: motor interference magnetic field offset in body frame
|
|
|
|
// @Field: MOfsZ: motor interference magnetic field offset in body frame
|
2020-03-19 23:57:40 -03:00
|
|
|
// @Field: Health: true if the compass is considered healthy
|
|
|
|
// @Field: S: time measurement was taken
|
|
|
|
|
2020-03-31 18:37:53 -03:00
|
|
|
// @LoggerMessage: MAV
|
|
|
|
// @Description: GCS MAVLink link statistics
|
2020-04-07 04:35:05 -03:00
|
|
|
// @Field: TimeUS: Time since system startup
|
2020-03-31 18:37:53 -03:00
|
|
|
// @Field: chan: mavlink channel number
|
|
|
|
// @Field: txp: transmitted packet count
|
|
|
|
// @Field: rxp: received packet count
|
|
|
|
// @Field: rxdp: perceived number of packets we never received
|
|
|
|
// @Field: flags: compact representation of some stage of the channel
|
|
|
|
// @Field: ss: stream slowdown is the number of ms being added to each message to fit within bandwidth
|
2020-04-14 19:54:22 -03:00
|
|
|
// @Field: tf: times buffer was full when a message was going to be sent
|
2020-03-31 18:37:53 -03:00
|
|
|
|
AP_Logger: add documentation for ACC1,ACC2,ACC3,DMS,GPA,GPA2,GPS2,GYR1,GYR2,GYR3,MAVC,PM
2020-04-03 22:32:14 -03:00
|
|
|
// @LoggerMessage: MAVC
|
|
|
|
// @Description: MAVLink command we have just executed
|
2020-04-07 04:35:05 -03:00
|
|
|
// @Field: TimeUS: Time since system startup
|
AP_Logger: add documentation for ACC1,ACC2,ACC3,DMS,GPA,GPA2,GPS2,GYR1,GYR2,GYR3,MAVC,PM
2020-04-03 22:32:14 -03:00
|
|
|
// @Field: TS: target system for command
|
|
|
|
// @Field: TC: target component for command
|
|
|
|
// @Field: Fr: command frame
|
|
|
|
// @Field: Cmd: mavlink command enum value
|
|
|
|
// @Field: Cur: current flag from mavlink packet
|
|
|
|
// @Field: AC: autocontinue flag from mavlink packet
|
|
|
|
// @Field: P1: first parameter from mavlink packet
|
|
|
|
// @Field: P2: second parameter from mavlink packet
|
|
|
|
// @Field: P3: third parameter from mavlink packet
|
|
|
|
// @Field: P4: fourth parameter from mavlink packet
|
|
|
|
// @Field: X: X coordinate from mavlink packet
|
|
|
|
// @Field: Y: Y coordinate from mavlink packet
|
|
|
|
// @Field: Z: Z coordinate from mavlink packet
|
|
|
|
// @Field: Res: command result being returned from autopilot
|
|
|
|
// @Field: WL: true if this command arrived via a COMMAND_LONG rather than COMMAND_INT
|
|
|
|
|
2020-03-19 23:57:40 -03:00
|
|
|
// @LoggerMessage: MODE
|
|
|
|
// @Description: vehicle control mode information
|
2020-04-07 04:35:05 -03:00
|
|
|
// @Field: TimeUS: Time since system startup
|
2020-03-19 23:57:40 -03:00
|
|
|
// @Field: Mode: vehicle-specific mode number
|
|
|
|
// @Field: ModeNum: alias for Mode
|
|
|
|
// @Field: Rsn: reason for entering this mode; enumeration value
|
2020-03-17 22:13:16 -03:00
|
|
|
|
AP_Logger: add documentation for more log messages
ERR,DSF,EV,SIM,ORGN,POS,LGR,MON,TSYN,IMU,IMUT
2020-03-21 09:21:59 -03:00
|
|
|
// @LoggerMessage: MON
|
|
|
|
// @Description: Main loop stuck data
|
2020-04-07 04:35:05 -03:00
|
|
|
// @Field: TimeUS: Time since system startup
|
AP_Logger: add documentation for more log messages
ERR,DSF,EV,SIM,ORGN,POS,LGR,MON,TSYN,IMU,IMUT
2020-03-21 09:21:59 -03:00
|
|
|
// @Field: LDelay: Time main loop has been stuck for
|
|
|
|
// @Field: Task: Current scheduler task number
|
|
|
|
// @Field: IErr: Internal error mask; which internal errors have been detected
|
|
|
|
// @Field: IErrCnt: Internal error count; how many internal errors have been detected
|
2020-04-29 21:40:46 -03:00
|
|
|
// @Field: IErrLn: Line on which internal error ocurred
|
AP_Logger: add documentation for more log messages
ERR,DSF,EV,SIM,ORGN,POS,LGR,MON,TSYN,IMU,IMUT
2020-03-21 09:21:59 -03:00
|
|
|
// @Field: MavMsg: Id of the last mavlink message processed
|
|
|
|
// @Field: MavCmd: Id of the last mavlink command processed
|
|
|
|
// @Field: SemLine: Line number of semaphore most recently taken
|
|
|
|
// @Field: SPICnt: Number of SPI transactions processed
|
|
|
|
// @Field: I2CCnt: Number of i2c transactions processed
|
|
|
|
|
2020-04-02 20:07:46 -03:00
|
|
|
// @LoggerMessage: MSG
|
|
|
|
// @Description: Textual messages
|
2020-04-07 04:35:05 -03:00
|
|
|
// @Field: TimeUS: Time since system startup
|
2020-04-02 20:07:46 -03:00
|
|
|
// @Field: Message: message text
|
|
|
|
|
2020-03-25 09:33:03 -03:00
|
|
|
// @LoggerMessage: MULT
|
|
|
|
// @Description: Message mapping from single character to numeric multiplier
|
2020-04-07 04:35:05 -03:00
|
|
|
// @Field: TimeUS: Time since system startup
|
2020-03-25 09:33:03 -03:00
|
|
|
// @Field: Id: character referenced by FMTU
|
|
|
|
// @Field: Mult: numeric multiplier
|
|
|
|
|
AP_Logger: add documentation for EKF messages
NKF0, NKF1, NKF2, NKF3, NKF4, NKF5, NKQ
XKF0, XKF1, XKF2, XKF3, XKF4, XKF5, XKFD, XKQ, XKV1, XKV2
2020-04-15 01:56:13 -03:00
|
|
|
// @LoggerMessage: NKF0
|
|
|
|
// @Description: EKF2 beacon sensor diagnostics
|
|
|
|
// @Field: TimeUS: Time since system startup
|
|
|
|
// @Field: ID: Beacon sensor ID
|
|
|
|
// @Field: rng: Beacon range
|
|
|
|
// @Field: innov: Beacon range innovation
|
|
|
|
// @Field: SIV: sqrt of beacon range innovation variance
|
|
|
|
// @Field: TR: Beacon range innovation consistency test ratio
|
|
|
|
// @Field: BPN: Beacon north position
|
|
|
|
// @Field: BPE: Beacon east position
|
|
|
|
// @Field: BPD: Beacon down position
|
|
|
|
// @Field: OFH: High estimate of vertical position offset of beacons rel to EKF origin
|
|
|
|
// @Field: OFL: Low estimate of vertical position offset of beacons rel to EKF origin
|
|
|
|
// @Field: OFN: always zero
|
|
|
|
// @Field: OFE: always zero
|
|
|
|
// @Field: OFD: always zero
|
|
|
|
|
|
|
|
// @LoggerMessage: NKF1
|
|
|
|
// @Description: EKF2 estimator outputs
|
|
|
|
// @Field: TimeUS: Time since system startup
|
|
|
|
// @Field: C: EKF2 core this data is for
|
|
|
|
// @Field: Roll: Estimated roll
|
|
|
|
// @Field: Pitch: Estimated pitch
|
|
|
|
// @Field: Yaw: Estimated yaw
|
|
|
|
// @Field: VN: Estimated velocity (North component)
|
|
|
|
// @Field: VE: Estimated velocity (East component)
|
|
|
|
// @Field: VD: Estimated velocity (Down component)
|
|
|
|
// @Field: dPD: Filtered derivative of vertical position (down)
|
|
|
|
// @Field: PN: Estimated distance from origin (North component)
|
|
|
|
// @Field: PE: Estimated distance from origin (East component)
|
|
|
|
// @Field: PD: Estimated distance from origin (Down component)
|
|
|
|
// @Field: GX: Estimated gyro bias, X axis
|
|
|
|
// @Field: GY: Estimated gyro bias, Y axis
|
|
|
|
// @Field: GZ: Estimated gyro bias, Z axis
|
|
|
|
// @Field: OH: Height of origin above WGS-84
|
|
|
|
|
|
|
|
// @LoggerMessage: NKF2
|
|
|
|
// @Description: EKF2 estimator secondary outputs
|
|
|
|
// @Field: TimeUS: Time since system startup
|
|
|
|
// @Field: C: EKF2 core this data is for
|
|
|
|
// @Field: AZbias: Estimated accelerometer Z bias
|
|
|
|
// @Field: GSX: Gyro Scale Factor (X-axis)
|
|
|
|
// @Field: GSY: Gyro Scale Factor (Y-axis)
|
|
|
|
// @Field: GSZ: Gyro Scale Factor (Z-axis)
|
|
|
|
// @Field: VWN: Estimated wind velocity (North component)
|
|
|
|
// @Field: VWE: Estimated wind velocity (East component)
|
|
|
|
// @Field: MN: Magnetic field strength (North component)
|
|
|
|
// @Field: ME: Magnetic field strength (East component)
|
|
|
|
// @Field: MD: Magnetic field strength (Down component)
|
|
|
|
// @Field: MX: Magnetic field strength (body X-axis)
|
|
|
|
// @Field: MY: Magnetic field strength (body Y-axis)
|
|
|
|
// @Field: MZ: Magnetic field strength (body Z-axis)
|
|
|
|
// @Field: MI: Magnetometer used for data
|
|
|
|
|
|
|
|
// @LoggerMessage: NKF3
|
|
|
|
// @Description: EKF2 innovations
|
|
|
|
// @Field: TimeUS: Time since system startup
|
|
|
|
// @Field: C: EKF2 core this data is for
|
|
|
|
// @Field: IVN: Innovation in velocity (North component)
|
|
|
|
// @Field: IVE: Innovation in velocity (East component)
|
|
|
|
// @Field: IVD: Innovation in velocity (Down component)
|
|
|
|
// @Field: IPN: Innovation in position (North component)
|
|
|
|
// @Field: IPE: Innovation in position (East component)
|
|
|
|
// @Field: IPD: Innovation in position (Down component)
|
|
|
|
// @Field: IMX: Innovation in magnetic field strength (X-axis component)
|
|
|
|
// @Field: IMY: Innovation in magnetic field strength (Y-axis component)
|
|
|
|
// @Field: IMZ: Innovation in magnetic field strength (Z-axis component)
|
|
|
|
// @Field: IYAW: Innovation in vehicle yaw
|
|
|
|
// @Field: IVT: Innovation in true-airspeed
|
|
|
|
|
|
|
|
// @LoggerMessage: NKF4
|
|
|
|
// @Description: EKF2 variances
|
|
|
|
// @Field: TimeUS: Time since system startup
|
|
|
|
// @Field: C: EKF2 core this data is for
|
|
|
|
// @Field: SV: Square root of the velocity variance
|
|
|
|
// @Field: SP: Square root of the position variance
|
|
|
|
// @Field: SH: Square root of the height variance
|
|
|
|
// @Field: SM: Magnetic field variance
|
|
|
|
// @Field: SVT: Square root of the total airspeed variance
|
|
|
|
// @Field: errRP: Filtered error in roll/pitch estimate
|
|
|
|
// @Field: OFN: Most recent position recent magnitude (North component)
|
|
|
|
// @Field: OFE: Most recent position recent magnitude (East component)
|
|
|
|
// @Field: FS: Filter fault status
|
|
|
|
// @Field: TS: Filter timeout status
|
|
|
|
// @Field: SS: Filter solution status
|
|
|
|
// @Field: GPS: Filter GPS status
|
|
|
|
// @Field: PI: Primary core index
|
|
|
|
|
|
|
|
// @LoggerMessage: NKF5
|
|
|
|
// @Description: EKF2 Sensor innovations (primary core) and general dumping ground
|
|
|
|
// @Field: TimeUS: Time since system startup
|
|
|
|
// @Field: NI: Normalised flow variance
|
|
|
|
// @Field: FIX: Optical flow LOS rate vector innovations from the main nav filter (X-axis)
|
|
|
|
// @Field: FIY: Optical flow LOS rate vector innovations from the main nav filter (Y-axis)
|
|
|
|
// @Field: AFI: Optical flow LOS rate innovation from terrain offset estimator
|
|
|
|
// @Field: HAGL: Height above ground level
|
|
|
|
// @Field: offset: Estimated vertical position of the terrain relative to the nav filter zero datum
|
|
|
|
// @Field: RI: Range finder innovations
|
|
|
|
// @Field: rng: Measured range
|
|
|
|
// @Field: Herr: Filter ground offset state error
|
|
|
|
// @Field: eAng: Magnitude of angular error
|
|
|
|
// @Field: eVel: Magnitude of velocity error
|
|
|
|
// @Field: ePos: Magnitude of position error
|
|
|
|
|
|
|
|
// @LoggerMessage: NKQ
|
|
|
|
// @Description: EKF2 quaternion defining the rotation from NED to XYZ (autopilot) axes
|
|
|
|
// @Field: TimeUS: Time since system startup
|
|
|
|
// @Field: C: EKF2 core this data is for
|
|
|
|
// @Field: Q1: Quaternion a term
|
|
|
|
// @Field: Q2: Quaternion b term
|
|
|
|
// @Field: Q3: Quaternion c term
|
|
|
|
// @Field: Q4: Quaternion d term
|
|
|
|
|
2020-04-12 04:19:56 -03:00
|
|
|
// @LoggerMessage: OABR
|
|
|
|
// @Description: Object avoidance (Bendy Ruler) diagnostics
|
|
|
|
// @Field: TimeUS: Time since system startup
|
|
|
|
// @Field: Active: True if Bendy Ruler avoidance is being used
|
|
|
|
// @Field: DesYaw: Best yaw chosen to avoid obstacle
|
|
|
|
// @Field: Yaw: Current vehicle yaw
|
2020-06-21 10:25:41 -03:00
|
|
|
// @Field: ResChg: True if BendyRuler resisted changing bearing and continued in last calculated bearing
|
2020-04-12 04:19:56 -03:00
|
|
|
// @Field: Mar: Margin from path to obstacle on best yaw chosen
|
|
|
|
// @Field: DLat: Destination latitude
|
|
|
|
// @Field: DLng: Destination longitude
|
|
|
|
// @Field: OALat: Intermediate location chosen for avoidance
|
|
|
|
// @Field: OALng: Intermediate location chosen for avoidance
|
|
|
|
|
|
|
|
// @LoggerMessage: OADJ
|
|
|
|
// @Description: Object avoidance (Dijkstra) diagnostics
|
|
|
|
// @Field: TimeUS: Time since system startup
|
|
|
|
// @Field: State: Dijkstra avoidance library state
|
|
|
|
// @Field: Err: Dijkstra library error condition
|
|
|
|
// @Field: CurrPoint: Destination point in calculated path to destination
|
|
|
|
// @Field: TotPoints: Number of points in path to destination
|
|
|
|
// @Field: DLat: Destination latitude
|
|
|
|
// @Field: DLng: Destination longitude
|
|
|
|
// @Field: OALat: Object Avoidance chosen destination point latitude
|
|
|
|
// @Field: OALng: Object Avoidance chosen destination point longitude
|
|
|
|
|
2020-04-05 07:50:34 -03:00
|
|
|
// @LoggerMessage: OF
|
|
|
|
// @Description: Optical flow sensor data
|
|
|
|
// @Field: TimeUS: Time since system startup
|
|
|
|
// @Field: Qual: Estimated sensor data quality
|
|
|
|
// @Field: flowX: Sensor flow rate, X-axis
|
|
|
|
// @Field: flowY: Sensor flow rate,Y-axis
|
|
|
|
// @Field: bodyX: derived velocity, X-axis
|
|
|
|
// @Field: bodyY: derived velocity, Y-axis
|
|
|
|
|
AP_Logger: add documentation for more log messages
ERR,DSF,EV,SIM,ORGN,POS,LGR,MON,TSYN,IMU,IMUT
2020-03-21 09:21:59 -03:00
|
|
|
// @LoggerMessage: ORGN
|
|
|
|
// @Description: Vehicle navigation origin or other notable position
|
|
|
|
// @Field: TimeUS: Time since system startup
|
|
|
|
// @Field: Type: Position type
|
|
|
|
// @Field: Lat: Position latitude
|
|
|
|
// @Field: Lng: Position longitude
|
|
|
|
// @Field: Alt: Position altitude
|
|
|
|
|
2020-03-31 18:37:53 -03:00
|
|
|
// @LoggerMessage: PARM
|
|
|
|
// @Description: parameter value
|
2020-04-07 04:35:05 -03:00
|
|
|
// @Field: TimeUS: Time since system startup
|
2020-03-31 18:37:53 -03:00
|
|
|
// @Field: Name: parameter name
|
|
|
|
// @Field: Value: parameter vlaue
|
|
|
|
|
2020-03-19 23:57:40 -03:00
|
|
|
// @LoggerMessage: PIDR,PIDP,PIDY,PIDA,PIDS
|
2020-07-21 12:08:01 -03:00
|
|
|
// @Description: Proportional/Integral/Derivative gain values for Roll/Pitch/Yaw/Altitude/Steering
|
2020-04-07 04:35:05 -03:00
|
|
|
// @Field: TimeUS: Time since system startup
|
2020-03-19 23:57:40 -03:00
|
|
|
// @Field: Tar: desired value
|
|
|
|
// @Field: Act: achieved value
|
|
|
|
// @Field: Err: error between target and achieved
|
2020-03-21 10:03:33 -03:00
|
|
|
// @Field: P: proportional part of PID
|
2020-03-19 23:57:40 -03:00
|
|
|
// @Field: I: integral part of PID
|
2020-03-21 10:03:33 -03:00
|
|
|
// @Field: D: derivative part of PID
|
2020-03-19 23:57:40 -03:00
|
|
|
// @Field: FF: controller feed-forward portion of response
|
2020-05-10 04:16:23 -03:00
|
|
|
// @Field: Dmod: scaler applied to D gain to reduce limit cycling
|
2020-03-19 23:57:40 -03:00
|
|
|
|
AP_Logger: add documentation for ACC1,ACC2,ACC3,DMS,GPA,GPA2,GPS2,GYR1,GYR2,GYR3,MAVC,PM
2020-04-03 22:32:14 -03:00
|
|
|
// @LoggerMessage: PM
|
|
|
|
// @Description: autopilot system performance and general data dumping ground
|
2020-04-07 04:35:05 -03:00
|
|
|
// @Field: TimeUS: Time since system startup
|
AP_Logger: add documentation for ACC1,ACC2,ACC3,DMS,GPA,GPA2,GPS2,GYR1,GYR2,GYR3,MAVC,PM
2020-04-03 22:32:14 -03:00
|
|
|
// @Field: NLon: Number of long loops detected
|
|
|
|
// @Field: NLoop: Number of measurement loops for this message
|
|
|
|
// @Field: MaxT: Maximum loop time
|
|
|
|
// @Field: Mem: Free memory available
|
|
|
|
// @Field: Load: System processor load
|
|
|
|
// @Field: IntE: Internal error mask; which internal errors have been detected
|
|
|
|
// @Field: IntEC: Internal error count; how many internal errors have been detected
|
|
|
|
// @Field: SPIC: Number of SPI transactions processed
|
|
|
|
// @Field: I2CC: Number of i2c transactions processed
|
|
|
|
// @Field: I2CI: Number of i2c interrupts serviced
|
|
|
|
// @Field: ExUS: number of microseconds being added to each loop to address scheduler overruns
|
|
|
|
|
AP_Logger: add documentation for more log messages
ERR,DSF,EV,SIM,ORGN,POS,LGR,MON,TSYN,IMU,IMUT
2020-03-21 09:21:59 -03:00
|
|
|
// @LoggerMessage: POS
|
|
|
|
// @Description: Canonical vehicle position
|
|
|
|
// @Field: TimeUS: Time since system startup
|
|
|
|
// @Field: Lat: Canonical vehicle latitude
|
|
|
|
// @Field: Lng: Canonical vehicle longitude
|
|
|
|
// @Field: Alt: Canonical vehicle altitude
|
|
|
|
// @Field: RelHomeAlt: Canonical vehicle altitude relative to home
|
|
|
|
// @Field: RelOriginAlt: Canonical vehicle altitude relative to navigation origin
|
|
|
|
|
2020-04-05 07:50:34 -03:00
|
|
|
// @LoggerMessage: POWR
|
|
|
|
// @Description: System power information
|
|
|
|
// @Field: TimeUS: Time since system startup
|
|
|
|
// @Field: Vcc: Flight board voltage
|
|
|
|
// @Field: VServo: Servo rail voltage
|
|
|
|
// @Field: Flags: System power flags
|
2020-07-19 21:34:43 -03:00
|
|
|
// @Field: AccFlags: Accumulated System power flags; all flags which have ever been set
|
2020-04-05 07:50:34 -03:00
|
|
|
// @Field: Safety: Hardware Safety Switch status
|
|
|
|
|
2020-04-12 04:19:56 -03:00
|
|
|
// @LoggerMessage: PRX
|
|
|
|
// @Description: Proximity sensor data
|
|
|
|
// @Field: TimeUS: Time since system startup
|
|
|
|
// @Field: Health: True if proximity sensor is healthy
|
|
|
|
// @Field: D0: Nearest object in sector surrounding 0-degrees
|
|
|
|
// @Field: D45: Nearest object in sector surrounding 45-degrees
|
|
|
|
// @Field: D90: Nearest object in sector surrounding 90-degrees
|
|
|
|
// @Field: D135: Nearest object in sector surrounding 135-degrees
|
|
|
|
// @Field: D180: Nearest object in sector surrounding 180-degrees
|
|
|
|
// @Field: D225: Nearest object in sector surrounding 225-degrees
|
|
|
|
// @Field: D270: Nearest object in sector surrounding 270-degrees
|
|
|
|
// @Field: D315: Nearest object in sector surrounding 315-degrees
|
|
|
|
// @Field: DUp: Nearest object in upwards direction
|
|
|
|
// @Field: CAn: Angle to closest object
|
|
|
|
// @Field: CDis: Distance to closest object
|
|
|
|
|
2020-04-02 20:07:46 -03:00
|
|
|
// @LoggerMessage: RAD
|
|
|
|
// @Description: Telemetry radio statistics
|
|
|
|
// @Field: TimeUS: Time since system startup
|
|
|
|
// @Field: RSSI: RSSI
|
|
|
|
// @Field: RemRSSI: RSSI reported from remote radio
|
|
|
|
// @Field: TxBuf: number of bytes in radio ready to be sent
|
|
|
|
// @Field: Noise: local noise floor
|
|
|
|
// @Field: RemNoise: local noise floor reported from remote radio
|
|
|
|
// @Field: RxErrors: damaged packet count
|
|
|
|
// @Field: Fixed: fixed damaged packet count
|
|
|
|
|
|
|
|
// @LoggerMessage: RALY
|
|
|
|
// @Description: Rally point information
|
|
|
|
// @Field: TimeUS: Time since system startup
|
|
|
|
// @Field: Tot: total number of rally points onboard
|
|
|
|
// @Field: Seq: this rally point's sequence number
|
|
|
|
// @Field: Lat: latitude of rally point
|
|
|
|
// @Field: Lng: longitude of rally point
|
|
|
|
// @Field: Alt: altitude of rally point
|
|
|
|
|
2020-03-19 23:57:40 -03:00
|
|
|
// @LoggerMessage: RATE
|
|
|
|
// @Description: Desired and achieved vehicle attitude rates
|
2020-04-07 04:35:05 -03:00
|
|
|
// @Field: TimeUS: Time since system startup
|
2020-03-19 23:57:40 -03:00
|
|
|
// @Field: RDes: vehicle desired roll rate
|
|
|
|
// @Field: R: achieved vehicle roll rate
|
2020-03-21 10:03:33 -03:00
|
|
|
// @Field: ROut: normalized output for Roll
|
2020-03-19 23:57:40 -03:00
|
|
|
// @Field: PDes: vehicle desired pitch rate
|
|
|
|
// @Field: P: vehicle pitch rate
|
2020-03-21 10:03:33 -03:00
|
|
|
// @Field: POut: normalized output for Pitch
|
2020-03-19 23:57:40 -03:00
|
|
|
// @Field: YDes: vehicle desired yaw rate
|
|
|
|
// @Field: Y: achieved vehicle yaw rate
|
2020-03-21 10:03:33 -03:00
|
|
|
// @Field: YOut: normalized output for Yaw
|
2020-03-19 23:57:40 -03:00
|
|
|
// @Field: YDes: vehicle desired yaw rate
|
|
|
|
// @Field: Y: achieved vehicle yaw rate
|
|
|
|
// @Field: ADes: desired vehicle vertical acceleration
|
2020-03-21 10:03:33 -03:00
|
|
|
// @Field: A: achieved vehicle vertical acceleration
|
2020-03-19 23:57:40 -03:00
|
|
|
// @Field: AOut: percentage of vertical thrust output current being used
|
|
|
|
|
|
|
|
// @LoggerMessage: RCIN
|
|
|
|
// @Description: RC input channels to vehicle
|
2020-04-07 04:35:05 -03:00
|
|
|
// @Field: TimeUS: Time since system startup
|
2020-03-19 23:57:40 -03:00
|
|
|
// @Field: C1: channel 1 input
|
|
|
|
// @Field: C2: channel 2 input
|
|
|
|
// @Field: C3: channel 3 input
|
|
|
|
// @Field: C4: channel 4 input
|
|
|
|
// @Field: C5: channel 5 input
|
|
|
|
// @Field: C6: channel 6 input
|
|
|
|
// @Field: C7: channel 7 input
|
|
|
|
// @Field: C8: channel 8 input
|
|
|
|
// @Field: C9: channel 9 input
|
|
|
|
// @Field: C10: channel 10 input
|
|
|
|
// @Field: C11: channel 11 input
|
|
|
|
// @Field: C12: channel 12 input
|
|
|
|
// @Field: C13: channel 13 input
|
|
|
|
// @Field: C14: channel 14 input
|
|
|
|
|
|
|
|
// @LoggerMessage: RCOU
|
|
|
|
// @Description: Servo channel output values
|
2020-04-07 04:35:05 -03:00
|
|
|
// @Field: TimeUS: Time since system startup
|
2020-03-19 23:57:40 -03:00
|
|
|
// @Field: C1: channel 1 output
|
|
|
|
// @Field: C2: channel 2 output
|
|
|
|
// @Field: C3: channel 3 output
|
|
|
|
// @Field: C4: channel 4 output
|
|
|
|
// @Field: C5: channel 5 output
|
|
|
|
// @Field: C6: channel 6 output
|
|
|
|
// @Field: C7: channel 7 output
|
|
|
|
// @Field: C8: channel 8 output
|
|
|
|
// @Field: C9: channel 9 output
|
|
|
|
// @Field: C10: channel 10 output
|
|
|
|
// @Field: C11: channel 11 output
|
|
|
|
// @Field: C12: channel 12 output
|
|
|
|
// @Field: C13: channel 13 output
|
|
|
|
// @Field: C14: channel 14 output
|
|
|
|
|
2020-04-02 20:07:46 -03:00
|
|
|
// @LoggerMessage: RFND
|
|
|
|
// @Description: Rangefinder sensor information
|
|
|
|
// @Field: TimeUS: Time since system startup
|
|
|
|
// @Field: Instance: rangefinder instance number this data is from
|
|
|
|
// @Field: Dist: Reported distance from sensor
|
|
|
|
// @Field: Stat: Sensor state
|
|
|
|
// @Field: Orient: Sensor orientation
|
|
|
|
|
|
|
|
// @LoggerMessage: RPM
|
|
|
|
// @Description: Data from RPM sensors
|
|
|
|
// @Field: TimeUS: Time since system startup
|
|
|
|
// @Field: rpm1: First sensor's data
|
|
|
|
// @Field: rpm2: Second sensor's data
|
|
|
|
|
|
|
|
// @LoggerMessage: RSSI
|
|
|
|
// @Description: Received Signal Strength Indicator for RC receiver
|
|
|
|
// @Field: TimeUS: Time since system startup
|
|
|
|
// @Field: RXRSSI: RSSI
|
|
|
|
|
AP_Logger: add documentation for more log messages
ERR,DSF,EV,SIM,ORGN,POS,LGR,MON,TSYN,IMU,IMUT
2020-03-21 09:21:59 -03:00
|
|
|
// @LoggerMessage: SIM
|
|
|
|
// @Description: SITL simulator state
|
|
|
|
// @Field: TimeUS: Time since system startup
|
|
|
|
// @Field: Roll: Simulated roll
|
|
|
|
// @Field: Pitch: Simulated pitch
|
|
|
|
// @Field: Yaw: Simulated yaw
|
|
|
|
// @Field: Alt: Simulated altitude
|
|
|
|
// @Field: Lat: Simulated latitude
|
|
|
|
// @Field: Lng: Simulated longitude
|
|
|
|
// @Field: Q1: Attitude quaternion component 1
|
|
|
|
// @Field: Q2: Attitude quaternion component 2
|
|
|
|
// @Field: Q3: Attitude quaternion component 3
|
|
|
|
// @Field: Q4: Attitude quaternion component 4
|
|
|
|
|
2020-03-25 09:33:03 -03:00
|
|
|
// @LoggerMessage: SRTL
|
|
|
|
// @Description: SmartRTL statistics
|
2020-04-07 04:35:05 -03:00
|
|
|
// @Field: TimeUS: Time since system startup
|
2020-03-25 09:33:03 -03:00
|
|
|
// @Field: Active: true if SmartRTL could be used right now
|
|
|
|
// @Field: NumPts: number of points currently in use
|
|
|
|
// @Field: MaxPts: maximum number of points that could be used
|
|
|
|
// @Field: Action: most recent internal action taken by SRTL library
|
|
|
|
// @Field: N: point associated with most recent action (North component)
|
|
|
|
// @Field: E: point associated with most recent action (East component)
|
|
|
|
// @Field: D: point associated with most recent action (Down component)
|
|
|
|
|
2020-07-21 14:00:18 -03:00
|
|
|
// @LoggerMessage: SA
|
|
|
|
// @Description: Simple Avoidance messages
|
|
|
|
// @Field: TimeUS: Time since system startup
|
|
|
|
// @Field: State: True if Simple Avoidance is active
|
|
|
|
// @Field: DVelX: Desired velocity, X-Axis (Velocity before Avoidance)
|
|
|
|
// @Field: DVelY: Desired velocity, Y-Axis (Velocity before Avoidance)
|
|
|
|
// @Field: MVelX: Modified velocity, X-Axis (Velocity after Avoidance)
|
|
|
|
// @Field: MVelY: Modified velocity, Y-Axis (Velocity after Avoidance)
|
|
|
|
// @Field: Back: True if vehicle is backing away
|
|
|
|
|
2020-04-05 07:50:34 -03:00
|
|
|
// @LoggerMessage: TERR
|
|
|
|
// @Description: Terrain database infomration
|
|
|
|
// @Field: TimeUS: Time since system startup
|
|
|
|
// @Field: Status: Terrain database status
|
|
|
|
// @Field: Lat: Current vehicle latitude
|
|
|
|
// @Field: Lng: Current vehicle longitude
|
|
|
|
// @Field: Spacing: terrain Tile spacing
|
|
|
|
// @Field: TerrH: current Terrain height
|
|
|
|
// @Field: CHeight: Vehicle height above terrain
|
|
|
|
// @Field: Pending: Number of tile requests outstanding
|
|
|
|
// @Field: Loaded: Number of tiles in memory
|
|
|
|
|
AP_Logger: add documentation for more log messages
ERR,DSF,EV,SIM,ORGN,POS,LGR,MON,TSYN,IMU,IMUT
2020-03-21 09:21:59 -03:00
|
|
|
// @LoggerMessage: TSYN
|
|
|
|
// @Description: Time synchronisation response information
|
|
|
|
// @Field: TimeUS: Time since system startup
|
|
|
|
// @Field: SysID: system ID this data is for
|
|
|
|
// @Field: RTT: round trip time for this system
|
|
|
|
|
2020-03-25 09:33:03 -03:00
|
|
|
// @LoggerMessage: UBX1
|
|
|
|
// @Description: uBlox-specific GPS information (part 1)
|
2020-04-07 04:35:05 -03:00
|
|
|
// @Field: TimeUS: Time since system startup
|
2020-03-25 09:33:03 -03:00
|
|
|
// @Field: Instance: GPS instance number
|
|
|
|
// @Field: noisePerMS: noise level as measured by GPS
|
|
|
|
// @Field: jamInd: jamming indicator; higher is more likely jammed
|
|
|
|
// @Field: aPower: antenna power indicator; 2 is don't know
|
|
|
|
// @Field: agcCnt: automatic gain control monitor
|
|
|
|
// @Field: config: bitmask for messages which haven't been seen
|
|
|
|
|
|
|
|
// @LoggerMessage: UBX2
|
|
|
|
// @Description: uBlox-specific GPS information (part 2)
|
2020-04-07 04:35:05 -03:00
|
|
|
// @Field: TimeUS: Time since system startup
|
2020-03-25 09:33:03 -03:00
|
|
|
// @Field: Instance: GPS instance number
|
|
|
|
// @Field: ofsI: imbalance of I part of complex signal
|
|
|
|
// @Field: magI: magnitude of I part of complex signal
|
|
|
|
// @Field: ofsQ: imbalance of Q part of complex signal
|
|
|
|
// @Field: magQ: magnitude of Q part of complex signal
|
|
|
|
|
|
|
|
// @LoggerMessage: UNIT
|
|
|
|
// @Description: Message mapping from single character to SI unit
|
2020-04-07 04:35:05 -03:00
|
|
|
// @Field: TimeUS: Time since system startup
|
2020-03-25 09:33:03 -03:00
|
|
|
// @Field: Id: character referenced by FMTU
|
|
|
|
// @Field: Label: Unit - SI where available
|
|
|
|
|
2020-03-19 23:57:40 -03:00
|
|
|
// @LoggerMessage: VIBE
|
|
|
|
// @Description: Processed (acceleration) vibration information
|
2020-04-07 04:35:05 -03:00
|
|
|
// @Field: TimeUS: Time since system startup
|
2020-03-19 23:57:40 -03:00
|
|
|
// @Field: VibeX: Primary accelerometer filtered vibration, x-axis
|
|
|
|
// @Field: VibeY: Primary accelerometer filtered vibration, y-axis
|
2020-03-21 10:03:33 -03:00
|
|
|
// @Field: VibeZ: Primary accelerometer filtered vibration, z-axis
|
2020-03-19 23:57:40 -03:00
|
|
|
// @Field: Clip0: Number of clipping events on 1st accelerometer
|
|
|
|
// @Field: Clip1: Number of clipping events on 2nd accelerometer
|
|
|
|
// @Field: Clip2: Number of clipping events on 3rd accelerometer
|
2020-03-17 22:13:16 -03:00
|
|
|
|
2020-04-07 01:31:00 -03:00
|
|
|
// @LoggerMessage: VISO
|
|
|
|
// @Description: Visual Odometry
|
|
|
|
// @Field: TimeUS: System time
|
|
|
|
// @Field: dt: Time period this data covers
|
|
|
|
// @Field: AngDX: Angular change for body-frame roll axis
|
|
|
|
// @Field: AngDY: Angular change for body-frame pitch axis
|
|
|
|
// @Field: AngDZ: Angular change for body-frame z axis
|
|
|
|
// @Field: PosDX: Position change for body-frame X axis (Forward-Back)
|
|
|
|
// @Field: PosDY: Position change for body-frame Y axis (Right-Left)
|
|
|
|
// @Field: PosDZ: Position change for body-frame Z axis (Down-Up)
|
|
|
|
// @Field: conf: Confidence
|
|
|
|
|
2020-03-26 01:00:30 -03:00
|
|
|
// @LoggerMessage: VISP
|
|
|
|
// @Description: Vision Position
|
|
|
|
// @Field: TimeUS: System time
|
2020-06-05 04:43:14 -03:00
|
|
|
// @Field: RTimeUS: Remote system time
|
2020-03-26 01:00:30 -03:00
|
|
|
// @Field: CTimeMS: Corrected system time
|
|
|
|
// @Field: PX: Position X-axis (North-South)
|
|
|
|
// @Field: PY: Position Y-axis (East-West)
|
|
|
|
// @Field: PZ: Position Z-axis (Down-Up)
|
|
|
|
// @Field: Roll: Roll lean angle
|
|
|
|
// @Field: Pitch: Pitch lean angle
|
|
|
|
// @Field: Yaw: Yaw angle
|
2020-06-05 04:43:14 -03:00
|
|
|
// @Field: PErr: Position estimate error
|
|
|
|
// @Field: AErr: Attitude estimate error
|
|
|
|
// @Field: RstCnt: Position reset counter
|
2020-03-26 01:00:30 -03:00
|
|
|
|
2020-05-28 22:28:04 -03:00
|
|
|
// @LoggerMessage: VISV
|
|
|
|
// @Description: Vision Velocity
|
|
|
|
// @Field: TimeUS: System time
|
2020-06-05 04:43:14 -03:00
|
|
|
// @Field: RTimeUS: Remote system time
|
2020-05-28 22:28:04 -03:00
|
|
|
// @Field: CTimeMS: Corrected system time
|
|
|
|
// @Field: VX: Velocity X-axis (North-South)
|
|
|
|
// @Field: VY: Velocity Y-axis (East-West)
|
|
|
|
// @Field: VZ: Velocity Z-axis (Down-Up)
|
|
|
|
// @Field: VErr: Velocity estimate error
|
2020-06-05 04:43:14 -03:00
|
|
|
// @Field: RstCnt: Velocity reset counter
|
2020-05-28 22:28:04 -03:00
|
|
|
|
2020-04-12 04:19:56 -03:00
|
|
|
// @LoggerMessage: WENC
|
|
|
|
// @Description: Wheel encoder measurements
|
|
|
|
// @Field: TimeUS: Time since system startup
|
|
|
|
// @Field: Dist0: First wheel distance travelled
|
|
|
|
// @Field: Qual0: Quality measurement of Dist0
|
|
|
|
// @Field: Dist1: Second wheel distance travelled
|
|
|
|
// @Field: Qual1: Quality measurement of Dist1
|
|
|
|
|
AP_Logger: add documentation for EKF messages
NKF0, NKF1, NKF2, NKF3, NKF4, NKF5, NKQ
XKF0, XKF1, XKF2, XKF3, XKF4, XKF5, XKFD, XKQ, XKV1, XKV2
2020-04-15 01:56:13 -03:00
|
|
|
// @LoggerMessage: XKF0
|
|
|
|
// @Description: EKF3 beacon sensor diagnostics
|
|
|
|
// @Field: TimeUS: Time since system startup
|
|
|
|
// @Field: ID: Beacon sensor ID
|
|
|
|
// @Field: rng: Beacon range
|
|
|
|
// @Field: innov: Beacon range innovation
|
|
|
|
// @Field: SIV: sqrt of beacon range innovation variance
|
|
|
|
// @Field: TR: Beacon range innovation consistency test ratio
|
|
|
|
// @Field: BPN: Beacon north position
|
|
|
|
// @Field: BPE: Beacon east position
|
|
|
|
// @Field: BPD: Beacon down position
|
|
|
|
// @Field: OFH: High estimate of vertical position offset of beacons rel to EKF origin
|
|
|
|
// @Field: OFL: Low estimate of vertical position offset of beacons rel to EKF origin
|
|
|
|
// @Field: OFN: North position of receiver rel to EKF origin
|
|
|
|
// @Field: OFE: East position of receiver rel to EKF origin
|
|
|
|
// @Field: OFD: Down position of receiver rel to EKF origin
|
|
|
|
|
|
|
|
// @LoggerMessage: XKF1
|
|
|
|
// @Description: EKF3 estimator outputs
|
|
|
|
// @Field: TimeUS: Time since system startup
|
|
|
|
// @Field: C: EKF3 core this data is for
|
|
|
|
// @Field: Roll: Estimated roll
|
|
|
|
// @Field: Pitch: Estimated pitch
|
|
|
|
// @Field: Yaw: Estimated yaw
|
|
|
|
// @Field: VN: Estimated velocity (North component)
|
|
|
|
// @Field: VE: Estimated velocity (East component)
|
|
|
|
// @Field: VD: Estimated velocity (Down component)
|
|
|
|
// @Field: dPD: Filtered derivative of vertical position (down)
|
|
|
|
// @Field: PN: Estimated distance from origin (North component)
|
|
|
|
// @Field: PE: Estimated distance from origin (East component)
|
|
|
|
// @Field: PD: Estimated distance from origin (Down component)
|
|
|
|
// @Field: GX: Estimated gyro bias, X axis
|
|
|
|
// @Field: GY: Estimated gyro bias, Y axis
|
|
|
|
// @Field: GZ: Estimated gyro bias, Z axis
|
|
|
|
// @Field: OH: Height of origin above WGS-84
|
|
|
|
|
|
|
|
// @LoggerMessage: XKF2
|
|
|
|
// @Description: EKF3 estimator secondary outputs
|
|
|
|
// @Field: TimeUS: Time since system startup
|
|
|
|
// @Field: C: EKF3 core this data is for
|
|
|
|
// @Field: AX: Estimated accelerometer X bias
|
|
|
|
// @Field: AY: Estimated accelerometer Y bias
|
|
|
|
// @Field: AZ: Estimated accelerometer Z bias
|
|
|
|
// @Field: VWN: Estimated wind velocity (North component)
|
|
|
|
// @Field: VWE: Estimated wind velocity (East component)
|
|
|
|
// @Field: MN: Magnetic field strength (North component)
|
|
|
|
// @Field: ME: Magnetic field strength (East component)
|
|
|
|
// @Field: MD: Magnetic field strength (Down component)
|
|
|
|
// @Field: MX: Magnetic field strength (body X-axis)
|
|
|
|
// @Field: MY: Magnetic field strength (body Y-axis)
|
|
|
|
// @Field: MZ: Magnetic field strength (body Z-axis)
|
|
|
|
// @Field: MI: Magnetometer used for data
|
|
|
|
|
|
|
|
// @LoggerMessage: XKF3
|
|
|
|
// @Description: EKF3 innovations
|
|
|
|
// @Field: TimeUS: Time since system startup
|
|
|
|
// @Field: C: EKF3 core this data is for
|
|
|
|
// @Field: IVN: Innovation in velocity (North component)
|
|
|
|
// @Field: IVE: Innovation in velocity (East component)
|
|
|
|
// @Field: IVD: Innovation in velocity (Down component)
|
|
|
|
// @Field: IPN: Innovation in position (North component)
|
|
|
|
// @Field: IPE: Innovation in position (East component)
|
|
|
|
// @Field: IPD: Innovation in position (Down component)
|
|
|
|
// @Field: IMX: Innovation in magnetic field strength (X-axis component)
|
|
|
|
// @Field: IMY: Innovation in magnetic field strength (Y-axis component)
|
|
|
|
// @Field: IMZ: Innovation in magnetic field strength (Z-axis component)
|
|
|
|
// @Field: IYAW: Innovation in vehicle yaw
|
|
|
|
// @Field: IVT: Innovation in true-airspeed
|
|
|
|
|
|
|
|
// @LoggerMessage: XKF4
|
|
|
|
// @Description: EKF3 variances
|
|
|
|
// @Field: TimeUS: Time since system startup
|
|
|
|
// @Field: C: EKF3 core this data is for
|
|
|
|
// @Field: SV: Square root of the velocity variance
|
|
|
|
// @Field: SP: Square root of the position variance
|
|
|
|
// @Field: SH: Square root of the height variance
|
|
|
|
// @Field: SM: Magnetic field variance
|
|
|
|
// @Field: SVT: Square root of the total airspeed variance
|
|
|
|
// @Field: errRP: Filtered error in roll/pitch estimate
|
|
|
|
// @Field: OFN: Most recent position recent magnitude (North component)
|
|
|
|
// @Field: OFE: Most recent position recent magnitude (East component)
|
|
|
|
// @Field: FS: Filter fault status
|
|
|
|
// @Field: TS: Filter timeout status
|
|
|
|
// @Field: SS: Filter solution status
|
|
|
|
// @Field: GPS: Filter GPS status
|
|
|
|
// @Field: PI: Primary core index
|
|
|
|
|
|
|
|
// @LoggerMessage: XKF5
|
|
|
|
// @Description: EKF3 Sensor innovations (primary core) and general dumping ground
|
|
|
|
// @Field: TimeUS: Time since system startup
|
|
|
|
// @Field: NI: Normalised flow variance
|
|
|
|
// @Field: FIX: Optical flow LOS rate vector innovations from the main nav filter (X-axis)
|
|
|
|
// @Field: FIY: Optical flow LOS rate vector innovations from the main nav filter (Y-axis)
|
|
|
|
// @Field: AFI: Optical flow LOS rate innovation from terrain offset estimator
|
|
|
|
// @Field: HAGL: Height above ground level
|
|
|
|
// @Field: offset: Estimated vertical position of the terrain relative to the nav filter zero datum
|
|
|
|
// @Field: RI: Range finder innovations
|
|
|
|
// @Field: rng: Measured range
|
|
|
|
// @Field: Herr: Filter ground offset state error
|
|
|
|
// @Field: eAng: Magnitude of angular error
|
|
|
|
// @Field: eVel: Magnitude of velocity error
|
|
|
|
// @Field: ePos: Magnitude of position error
|
|
|
|
|
|
|
|
// @LoggerMessage: XKFD
|
|
|
|
// @Description: EKF3 Body Frame Odometry errors
|
|
|
|
// @Field: TimeUS: Time since system startup
|
|
|
|
// @Field: IX: Innovation in velocity (X-axis)
|
|
|
|
// @Field: IY: Innovation in velocity (Y-axis)
|
|
|
|
// @Field: IZ: Innovation in velocity (Z-axis)
|
|
|
|
// @Field: IVX: Variance in velocity (X-axis)
|
|
|
|
// @Field: IVY: Variance in velocity (Y-axis)
|
|
|
|
// @Field: IVZ: Variance in velocity (Z-axis)
|
|
|
|
|
|
|
|
// @LoggerMessage: XKQ
|
|
|
|
// @Description: EKF3 quaternion defining the rotation from NED to XYZ (autopilot) axes
|
|
|
|
// @Field: TimeUS: Time since system startup
|
|
|
|
// @Field: C: EKF3 core this data is for
|
|
|
|
// @Field: Q1: Quaternion a term
|
|
|
|
// @Field: Q2: Quaternion b term
|
|
|
|
// @Field: Q3: Quaternion c term
|
|
|
|
// @Field: Q4: Quaternion d term
|
|
|
|
|
|
|
|
// @LoggerMessage: XKV1
|
|
|
|
// @Description: EKF3 State variances (primary core)
|
|
|
|
// @Field: TimeUS: Time since system startup
|
|
|
|
// @Field: V00: Variance for state 0
|
|
|
|
// @Field: V01: Variance for state 1
|
|
|
|
// @Field: V02: Variance for state 2
|
|
|
|
// @Field: V03: Variance for state 3
|
|
|
|
// @Field: V04: Variance for state 4
|
|
|
|
// @Field: V05: Variance for state 5
|
|
|
|
// @Field: V06: Variance for state 6
|
|
|
|
// @Field: V07: Variance for state 7
|
|
|
|
// @Field: V08: Variance for state 8
|
|
|
|
// @Field: V09: Variance for state 9
|
|
|
|
// @Field: V10: Variance for state 10
|
|
|
|
// @Field: V11: Variance for state 11
|
|
|
|
|
|
|
|
// @LoggerMessage: XKV2
|
|
|
|
// @Description: more EKF3 State Variances (primary core)
|
|
|
|
// @Field: TimeUS: Time since system startup
|
|
|
|
// @Field: V12: Variance for state 12
|
|
|
|
// @Field: V13: Variance for state 13
|
|
|
|
// @Field: V14: Variance for state 14
|
|
|
|
// @Field: V15: Variance for state 15
|
|
|
|
// @Field: V16: Variance for state 16
|
|
|
|
// @Field: V17: Variance for state 17
|
|
|
|
// @Field: V18: Variance for state 18
|
|
|
|
// @Field: V19: Variance for state 19
|
|
|
|
// @Field: V20: Variance for state 20
|
|
|
|
// @Field: V21: Variance for state 21
|
|
|
|
// @Field: V22: Variance for state 22
|
|
|
|
// @Field: V23: Variance for state 23
|
|
|
|
|
2020-07-24 02:59:41 -03:00
|
|
|
// @LoggerMessage: WINC
|
|
|
|
// @Description: Winch
|
|
|
|
// @Field: TimeUS: Time since system startup
|
|
|
|
// @Field: Heal: Healthy
|
|
|
|
// @Field: ThEnd: Reached end of thread
|
|
|
|
// @Field: Mov: Motor is moving
|
|
|
|
// @Field: Clut: Clutch is engaged (motor can move freely)
|
|
|
|
// @Field: Mode: 0 is Relaxed, 1 is Position Control, 2 is Rate Control
|
|
|
|
// @Field: DLen: Desired Length
|
|
|
|
// @Field: Len: Estimated Length
|
|
|
|
// @Field: DRate: Desired Rate
|
|
|
|
// @Field: Tens: Tension on line
|
|
|
|
// @Field: Vcc: Voltage to Motor
|
|
|
|
// @Field: Temp: Motor temperature
|
|
|
|
|
2015-11-05 19:50:54 -04:00
|
|
|
// messages for all boards
|
|
|
|
#define LOG_BASE_STRUCTURES \
|
|
|
|
{ LOG_FORMAT_MSG, sizeof(log_Format), \
|
2015-12-07 20:51:46 -04:00
|
|
|
"FMT", "BBnNZ", "Type,Length,Name,Format,Columns", "-b---", "-----" }, \
|
|
|
|
{ LOG_UNIT_MSG, sizeof(log_Unit), \
|
|
|
|
"UNIT", "QbZ", "TimeUS,Id,Label", "s--","F--" }, \
|
|
|
|
{ LOG_FORMAT_UNITS_MSG, sizeof(log_Format_Units), \
|
|
|
|
"FMTU", "QBNN", "TimeUS,FmtType,UnitIds,MultIds","s---", "F---" }, \
|
|
|
|
{ LOG_MULT_MSG, sizeof(log_Format_Multiplier), \
|
|
|
|
"MULT", "Qbd", "TimeUS,Id,Mult", "s--","F--" }, \
|
2015-11-05 19:50:54 -04:00
|
|
|
{ LOG_PARAMETER_MSG, sizeof(log_Parameter), \
|
2015-12-07 20:51:46 -04:00
|
|
|
"PARM", "QNf", "TimeUS,Name,Value", "s--", "F--" }, \
|
2015-11-05 19:50:54 -04:00
|
|
|
{ LOG_GPS_MSG, sizeof(log_GPS), \
|
2015-12-07 20:51:46 -04:00
|
|
|
"GPS", GPS_FMT, GPS_LABELS, GPS_UNITS, GPS_MULTS }, \
|
2015-11-05 19:50:54 -04:00
|
|
|
{ LOG_GPS2_MSG, sizeof(log_GPS), \
|
2015-12-07 20:51:46 -04:00
|
|
|
"GPS2", GPS_FMT, GPS_LABELS, GPS_UNITS, GPS_MULTS }, \
|
2017-03-10 02:48:51 -04:00
|
|
|
{ LOG_GPSB_MSG, sizeof(log_GPS), \
|
2015-12-07 20:51:46 -04:00
|
|
|
"GPSB", GPS_FMT, GPS_LABELS, GPS_UNITS, GPS_MULTS }, \
|
2015-11-05 19:50:54 -04:00
|
|
|
{ LOG_GPA_MSG, sizeof(log_GPA), \
|
2015-12-07 20:51:46 -04:00
|
|
|
"GPA", GPA_FMT, GPA_LABELS, GPA_UNITS, GPA_MULTS }, \
|
2015-11-05 19:50:54 -04:00
|
|
|
{ LOG_GPA2_MSG, sizeof(log_GPA), \
|
2015-12-07 20:51:46 -04:00
|
|
|
"GPA2", GPA_FMT, GPA_LABELS, GPA_UNITS, GPA_MULTS }, \
|
2017-03-10 02:48:51 -04:00
|
|
|
{ LOG_GPAB_MSG, sizeof(log_GPA), \
|
2015-12-07 20:51:46 -04:00
|
|
|
"GPAB", GPA_FMT, GPA_LABELS, GPA_UNITS, GPA_MULTS }, \
|
2015-11-05 19:50:54 -04:00
|
|
|
{ LOG_IMU_MSG, sizeof(log_IMU), \
|
2015-12-07 20:51:46 -04:00
|
|
|
"IMU", IMU_FMT, IMU_LABELS, IMU_UNITS, IMU_MULTS }, \
|
2015-11-05 19:50:54 -04:00
|
|
|
{ LOG_MESSAGE_MSG, sizeof(log_Message), \
|
2015-12-07 20:51:46 -04:00
|
|
|
"MSG", "QZ", "TimeUS,Message", "s-", "F-"}, \
|
2015-11-05 19:50:54 -04:00
|
|
|
{ LOG_RCIN_MSG, sizeof(log_RCIN), \
|
2018-10-14 01:45:42 -03:00
|
|
|
"RCIN", "QHHHHHHHHHHHHHH", "TimeUS,C1,C2,C3,C4,C5,C6,C7,C8,C9,C10,C11,C12,C13,C14", "sYYYYYYYYYYYYYY", "F--------------" }, \
|
2015-11-05 19:50:54 -04:00
|
|
|
{ LOG_RCOUT_MSG, sizeof(log_RCOUT), \
|
2018-10-14 01:45:42 -03:00
|
|
|
"RCOU", "QHHHHHHHHHHHHHH", "TimeUS,C1,C2,C3,C4,C5,C6,C7,C8,C9,C10,C11,C12,C13,C14", "sYYYYYYYYYYYYYY", "F--------------" }, \
|
2015-11-05 19:50:54 -04:00
|
|
|
{ LOG_RSSI_MSG, sizeof(log_RSSI), \
|
2015-12-07 20:51:46 -04:00
|
|
|
"RSSI", "Qf", "TimeUS,RXRSSI", "s-", "F-" }, \
|
2015-11-05 19:50:54 -04:00
|
|
|
{ LOG_BARO_MSG, sizeof(log_BARO), \
|
2015-12-07 20:51:46 -04:00
|
|
|
"BARO", BARO_FMT, BARO_LABELS, BARO_UNITS, BARO_MULTS }, \
|
2015-11-05 19:50:54 -04:00
|
|
|
{ LOG_POWR_MSG, sizeof(log_POWR), \
|
2020-07-19 21:34:43 -03:00
|
|
|
"POWR","QffHHB","TimeUS,Vcc,VServo,Flags,AccFlags,Safety", "svv---", "F00---" }, \
|
2015-11-05 19:50:54 -04:00
|
|
|
{ LOG_CMD_MSG, sizeof(log_Cmd), \
|
2018-11-24 23:10:07 -04:00
|
|
|
"CMD", "QHHHffffLLfB","TimeUS,CTot,CNum,CId,Prm1,Prm2,Prm3,Prm4,Lat,Lng,Alt,Frame", "s-------DUm-", "F-------GG0-" }, \
|
2019-08-22 22:21:39 -03:00
|
|
|
{ LOG_MAVLINK_COMMAND_MSG, sizeof(log_MAVLink_Command), \
|
|
|
|
"MAVC", "QBBBHBBffffiifBB","TimeUS,TS,TC,Fr,Cmd,Cur,AC,P1,P2,P3,P4,X,Y,Z,Res,WL", "s---------------", "F---------------" }, \
|
2015-11-05 19:50:54 -04:00
|
|
|
{ LOG_RADIO_MSG, sizeof(log_Radio), \
|
2015-12-07 20:51:46 -04:00
|
|
|
"RAD", "QBBBBBHH", "TimeUS,RSSI,RemRSSI,TxBuf,Noise,RemNoise,RxErrors,Fixed", "s-------", "F-------" }, \
|
2015-11-05 19:50:54 -04:00
|
|
|
{ LOG_CAMERA_MSG, sizeof(log_Camera), \
|
2015-12-07 20:51:46 -04:00
|
|
|
"CAM", "QIHLLeeeccC","TimeUS,GPSTime,GPSWeek,Lat,Lng,Alt,RelAlt,GPSAlt,Roll,Pitch,Yaw", "s--DUmmmddd", "F--GGBBBBBB" }, \
|
2016-01-28 18:51:52 -04:00
|
|
|
{ LOG_TRIGGER_MSG, sizeof(log_Camera), \
|
2018-03-01 01:45:18 -04:00
|
|
|
"TRIG", "QIHLLeeeccC","TimeUS,GPSTime,GPSWeek,Lat,Lng,Alt,RelAlt,GPSAlt,Roll,Pitch,Yaw", "s--DUmmmddd", "F--GGBBBBBB" }, \
|
2017-11-03 07:28:20 -03:00
|
|
|
{ LOG_ARSP_MSG, sizeof(log_AIRSPEED), "ARSP", ARSP_FMT, ARSP_LABELS, ARSP_UNITS, ARSP_MULTS }, \
|
|
|
|
{ LOG_ASP2_MSG, sizeof(log_AIRSPEED), "ASP2", ARSP_FMT, ARSP_LABELS, ARSP_UNITS, ARSP_MULTS }, \
|
2020-01-07 19:58:03 -04:00
|
|
|
{ LOG_CURRENT_MSG, sizeof(log_Current), \
|
2020-05-26 01:11:58 -03:00
|
|
|
"BAT", "QBfffffcf", "TimeUS,Instance,Volt,VoltR,Curr,CurrTot,EnrgTot,Temp,Res", "s#vvAiJOw", "F-000!/?0" }, \
|
2017-05-30 22:44:40 -03:00
|
|
|
{ LOG_CURRENT_CELLS_MSG, sizeof(log_Current_Cells), \
|
2020-06-11 21:16:45 -03:00
|
|
|
"BCL", "QBfHHHHHHHHHHHH", "TimeUS,Instance,Volt,V1,V2,V3,V4,V5,V6,V7,V8,V9,V10,V11,V12", "s#vvvvvvvvvvvvv", "F-0CCCCCCCCCCCC" }, \
|
2015-11-05 19:50:54 -04:00
|
|
|
{ LOG_ATTITUDE_MSG, sizeof(log_Attitude),\
|
2015-12-07 20:51:46 -04:00
|
|
|
"ATT", "QccccCCCC", "TimeUS,DesRoll,Roll,DesPitch,Pitch,DesYaw,Yaw,ErrRP,ErrYaw", "sddddhhdh", "FBBBBBBBB" }, \
|
2015-11-05 19:50:54 -04:00
|
|
|
{ LOG_COMPASS_MSG, sizeof(log_Compass), \
|
2015-12-07 20:51:46 -04:00
|
|
|
"MAG", MAG_FMT, MAG_LABELS, MAG_UNITS, MAG_MULTS }, \
|
2015-11-05 19:50:54 -04:00
|
|
|
{ LOG_MODE_MSG, sizeof(log_Mode), \
|
2015-12-07 20:51:46 -04:00
|
|
|
"MODE", "QMBB", "TimeUS,Mode,ModeNum,Rsn", "s---", "F---" }, \
|
2015-11-05 19:50:54 -04:00
|
|
|
{ LOG_RFND_MSG, sizeof(log_RFND), \
|
2019-05-29 21:28:17 -03:00
|
|
|
"RFND", "QBCBB", "TimeUS,Instance,Dist,Stat,Orient", "s#m--", "F-B--" }, \
|
2019-02-11 04:38:01 -04:00
|
|
|
{ LOG_MAV_STATS, sizeof(log_MAV_Stats), \
|
2020-04-03 22:37:36 -03:00
|
|
|
"DMS", "QIIIIBBBBBBBBB", "TimeUS,N,Dp,RT,RS,Fa,Fmn,Fmx,Pa,Pmn,Pmx,Sa,Smn,Smx", "s-------------", "F-------------" }, \
|
2017-04-18 11:43:03 -03:00
|
|
|
{ LOG_BEACON_MSG, sizeof(log_Beacon), \
|
2015-12-07 20:51:46 -04:00
|
|
|
"BCN", "QBBfffffff", "TimeUS,Health,Cnt,D0,D1,D2,D3,PosX,PosY,PosZ", "s--mmmmmmm", "F--BBBBBBB" }, \
|
2017-07-14 14:00:13 -03:00
|
|
|
{ LOG_PROXIMITY_MSG, sizeof(log_Proximity), \
|
2019-07-27 00:10:49 -03:00
|
|
|
"PRX", "QBfffffffffff", "TimeUS,Health,D0,D45,D90,D135,D180,D225,D270,D315,DUp,CAn,CDis", "s-mmmmmmmmmhm", "F-00000000000" }, \
|
2017-11-15 23:20:17 -04:00
|
|
|
{ LOG_PERFORMANCE_MSG, sizeof(log_Performance), \
|
2019-09-17 05:13:44 -03:00
|
|
|
"PM", "QHHIIHIIIIII", "TimeUS,NLon,NLoop,MaxT,Mem,Load,IntE,IntEC,SPIC,I2CC,I2CI,ExUS", "s---b%-----s", "F---0A-----F" }, \
|
2017-07-26 14:09:33 -03:00
|
|
|
{ LOG_SRTL_MSG, sizeof(log_SRTL), \
|
2019-06-08 01:59:04 -03:00
|
|
|
"SRTL", "QBHHBfff", "TimeUS,Active,NumPts,MaxPts,Action,N,E,D", "s----mmm", "F----000" }, \
|
2019-08-05 03:22:05 -03:00
|
|
|
{ LOG_OA_BENDYRULER_MSG, sizeof(log_OABendyRuler), \
|
2020-06-21 10:25:41 -03:00
|
|
|
"OABR","QBHHBfLLLL","TimeUS,Active,DesYaw,Yaw,ResChg,Mar,DLat,DLng,OALat,OALng", "sbdd-mDUDU", "F-----GGGG" }, \
|
2019-08-05 03:22:05 -03:00
|
|
|
{ LOG_OA_DIJKSTRA_MSG, sizeof(log_OADijkstra), \
|
2019-12-09 05:10:39 -04:00
|
|
|
"OADJ","QBBBBLLLL","TimeUS,State,Err,CurrPoint,TotPoints,DLat,DLng,OALat,OALng", "sbbbbDUDU", "F----GGGG" }, \
|
2020-07-21 14:00:18 -03:00
|
|
|
{ LOG_SIMPLE_AVOID_MSG, sizeof(log_SimpleAvoid), \
|
|
|
|
"SA", "QBffffB","TimeUS,State,DVelX,DVelY,MVelX,MVelY,Back", "sbnnnnb", "F------"}, \
|
2015-11-05 19:50:54 -04:00
|
|
|
{ LOG_IMU2_MSG, sizeof(log_IMU), \
|
2015-12-07 20:51:46 -04:00
|
|
|
"IMU2", IMU_FMT, IMU_LABELS, IMU_UNITS, IMU_MULTS }, \
|
2015-11-05 19:50:54 -04:00
|
|
|
{ LOG_IMU3_MSG, sizeof(log_IMU), \
|
2015-12-07 20:51:46 -04:00
|
|
|
"IMU3", IMU_FMT, IMU_LABELS, IMU_UNITS, IMU_MULTS }, \
|
2015-11-05 19:50:54 -04:00
|
|
|
{ LOG_AHR2_MSG, sizeof(log_AHRS), \
|
2018-05-04 06:40:00 -03:00
|
|
|
"AHR2","QccCfLLffff","TimeUS,Roll,Pitch,Yaw,Alt,Lat,Lng,Q1,Q2,Q3,Q4","sddhmDU????", "FBBB0GG????" }, \
|
2015-11-05 19:50:54 -04:00
|
|
|
{ LOG_POS_MSG, sizeof(log_POS), \
|
2018-05-04 06:11:55 -03:00
|
|
|
"POS","QLLfff","TimeUS,Lat,Lng,Alt,RelHomeAlt,RelOriginAlt", "sDUmmm", "FGG000" }, \
|
2015-11-05 19:50:54 -04:00
|
|
|
{ LOG_SIMSTATE_MSG, sizeof(log_AHRS), \
|
2018-03-01 01:45:18 -04:00
|
|
|
"SIM","QccCfLLffff","TimeUS,Roll,Pitch,Yaw,Alt,Lat,Lng,Q1,Q2,Q3,Q4", "sddhmDU????", "FBBB0GG????" }, \
|
2015-11-05 19:50:54 -04:00
|
|
|
{ LOG_NKF1_MSG, sizeof(log_EKF1), \
|
2019-12-06 03:12:50 -04:00
|
|
|
"NKF1","QBccCfffffffccce","TimeUS,C,Roll,Pitch,Yaw,VN,VE,VD,dPD,PN,PE,PD,GX,GY,GZ,OH", "s#ddhnnnnmmmkkkm", "F-BBB0000000BBBB" }, \
|
2015-11-05 19:50:54 -04:00
|
|
|
{ LOG_NKF2_MSG, sizeof(log_NKF2), \
|
2019-12-06 03:12:50 -04:00
|
|
|
"NKF2","QBbccccchhhhhhB","TimeUS,C,AZbias,GSX,GSY,GSZ,VWN,VWE,MN,ME,MD,MX,MY,MZ,MI", "s#----nnGGGGGG-", "F-----BBCCCCCC-" }, \
|
2015-11-05 19:50:54 -04:00
|
|
|
{ LOG_NKF3_MSG, sizeof(log_NKF3), \
|
2019-12-06 03:12:50 -04:00
|
|
|
"NKF3","QBcccccchhhcc","TimeUS,C,IVN,IVE,IVD,IPN,IPE,IPD,IMX,IMY,IMZ,IYAW,IVT", "s#nnnmmmGGG??", "F-BBBBBBCCCBB" }, \
|
2015-11-05 19:50:54 -04:00
|
|
|
{ LOG_NKF4_MSG, sizeof(log_NKF4), \
|
2020-02-10 21:31:44 -04:00
|
|
|
"NKF4","QBcccccfbbHBIHb","TimeUS,C,SV,SP,SH,SM,SVT,errRP,OFN,OFE,FS,TS,SS,GPS,PI", "s#------??-----", "F-------??-----" }, \
|
2016-07-03 19:11:03 -03:00
|
|
|
{ LOG_NKF5_MSG, sizeof(log_NKF5), \
|
2015-12-07 20:51:46 -04:00
|
|
|
"NKF5","QBhhhcccCCfff","TimeUS,NI,FIX,FIY,AFI,HAGL,offset,RI,rng,Herr,eAng,eVel,ePos", "s----m???mrnm", "F----BBBBB000" }, \
|
2016-11-23 08:04:51 -04:00
|
|
|
{ LOG_NKF10_MSG, sizeof(log_RngBcnDebug), \
|
2015-12-07 20:51:46 -04:00
|
|
|
"NKF0","QBccCCcccccccc","TimeUS,ID,rng,innov,SIV,TR,BPN,BPE,BPD,OFH,OFL,OFN,OFE,OFD", "s-m---mmmmmmmm", "F-B---BBBBBBBB" }, \
|
2019-12-06 03:12:50 -04:00
|
|
|
{ LOG_NKQ_MSG, sizeof(log_Quaternion), "NKQ", QUAT_FMT, QUAT_LABELS, QUAT_UNITS, QUAT_MULTS }, \
|
2016-07-14 02:08:43 -03:00
|
|
|
{ LOG_XKF1_MSG, sizeof(log_EKF1), \
|
2019-12-06 03:12:50 -04:00
|
|
|
"XKF1","QBccCfffffffccce","TimeUS,C,Roll,Pitch,Yaw,VN,VE,VD,dPD,PN,PE,PD,GX,GY,GZ,OH", "s#ddhnnnnmmmkkkm", "F-BBB0000000BBBB" }, \
|
2020-03-29 19:52:10 -03:00
|
|
|
{ LOG_XKF2_MSG, sizeof(log_XKF2), \
|
2019-12-06 03:12:50 -04:00
|
|
|
"XKF2","QBccccchhhhhhB","TimeUS,C,AX,AY,AZ,VWN,VWE,MN,ME,MD,MX,MY,MZ,MI", "s#---nnGGGGGG-", "F----BBCCCCCC-" }, \
|
2016-07-14 02:08:43 -03:00
|
|
|
{ LOG_XKF3_MSG, sizeof(log_NKF3), \
|
2019-12-06 03:12:50 -04:00
|
|
|
"XKF3","QBcccccchhhcc","TimeUS,C,IVN,IVE,IVD,IPN,IPE,IPD,IMX,IMY,IMZ,IYAW,IVT", "s#nnnmmmGGG??", "F-BBBBBBCCCBB" }, \
|
2016-07-14 02:08:43 -03:00
|
|
|
{ LOG_XKF4_MSG, sizeof(log_NKF4), \
|
2020-02-10 21:31:44 -04:00
|
|
|
"XKF4","QBcccccfbbHBIHb","TimeUS,C,SV,SP,SH,SM,SVT,errRP,OFN,OFE,FS,TS,SS,GPS,PI", "s#------??-----", "F-------??-----" }, \
|
2016-07-14 02:08:43 -03:00
|
|
|
{ LOG_XKF5_MSG, sizeof(log_NKF5), \
|
2015-12-07 20:51:46 -04:00
|
|
|
"XKF5","QBhhhcccCCfff","TimeUS,NI,FIX,FIY,AFI,HAGL,offset,RI,rng,Herr,eAng,eVel,ePos", "s----m???mrnm", "F----BBBBB000" }, \
|
2016-07-14 02:08:43 -03:00
|
|
|
{ LOG_XKF10_MSG, sizeof(log_RngBcnDebug), \
|
2015-12-07 20:51:46 -04:00
|
|
|
"XKF0","QBccCCcccccccc","TimeUS,ID,rng,innov,SIV,TR,BPN,BPE,BPD,OFH,OFL,OFN,OFE,OFD", "s-m---mmmmmmmm", "F-B---BBBBBBBB" }, \
|
2019-12-06 03:12:50 -04:00
|
|
|
{ LOG_XKQ_MSG, sizeof(log_Quaternion), "XKQ", QUAT_FMT, QUAT_LABELS, QUAT_UNITS, QUAT_MULTS }, \
|
2017-03-22 00:46:33 -03:00
|
|
|
{ LOG_XKFD_MSG, sizeof(log_ekfBodyOdomDebug), \
|
2015-12-07 20:51:46 -04:00
|
|
|
"XKFD","Qffffff","TimeUS,IX,IY,IZ,IVX,IVY,IVZ", "s------", "F------" }, \
|
2017-05-20 23:13:08 -03:00
|
|
|
{ LOG_XKV1_MSG, sizeof(log_ekfStateVar), \
|
2018-03-01 01:45:18 -04:00
|
|
|
"XKV1","Qffffffffffff","TimeUS,V00,V01,V02,V03,V04,V05,V06,V07,V08,V09,V10,V11", "s------------", "F------------" }, \
|
2017-05-20 23:13:08 -03:00
|
|
|
{ LOG_XKV2_MSG, sizeof(log_ekfStateVar), \
|
2015-12-07 20:51:46 -04:00
|
|
|
"XKV2","Qffffffffffff","TimeUS,V12,V13,V14,V15,V16,V17,V18,V19,V20,V21,V22,V23", "s------------", "F------------" }, \
|
2015-11-05 19:50:54 -04:00
|
|
|
{ LOG_TERRAIN_MSG, sizeof(log_TERRAIN), \
|
2015-12-07 20:51:46 -04:00
|
|
|
"TERR","QBLLHffHH","TimeUS,Status,Lat,Lng,Spacing,TerrH,CHeight,Pending,Loaded", "s-DU-mm--", "F-GG-00--" }, \
|
2015-11-05 19:50:54 -04:00
|
|
|
{ LOG_GPS_UBX1_MSG, sizeof(log_Ubx1), \
|
2020-04-25 20:42:49 -03:00
|
|
|
"UBX1", "QBHBBHI", "TimeUS,Instance,noisePerMS,jamInd,aPower,agcCnt,config", "s#-----", "F------" }, \
|
2015-11-05 19:50:54 -04:00
|
|
|
{ LOG_GPS_UBX2_MSG, sizeof(log_Ubx2), \
|
2020-04-25 20:42:49 -03:00
|
|
|
"UBX2", "QBbBbB", "TimeUS,Instance,ofsI,magI,ofsQ,magQ", "s#----", "F-----" }, \
|
2015-11-05 19:50:54 -04:00
|
|
|
{ LOG_GPS_RAW_MSG, sizeof(log_GPS_RAW), \
|
2015-12-07 20:51:46 -04:00
|
|
|
"GRAW", "QIHBBddfBbB", "TimeUS,WkMS,Week,numSV,sv,cpMes,prMes,doMes,mesQI,cno,lli", "s--S-------", "F--0-------" }, \
|
2015-11-05 19:50:54 -04:00
|
|
|
{ LOG_GPS_RAWH_MSG, sizeof(log_GPS_RAWH), \
|
2015-12-07 20:51:46 -04:00
|
|
|
"GRXH", "QdHbBB", "TimeUS,rcvTime,week,leapS,numMeas,recStat", "s-----", "F-----" }, \
|
2015-11-05 19:50:54 -04:00
|
|
|
{ LOG_GPS_RAWS_MSG, sizeof(log_GPS_RAWS), \
|
2015-12-07 20:51:46 -04:00
|
|
|
"GRXS", "QddfBBBHBBBBB", "TimeUS,prMes,cpMes,doMes,gnss,sv,freq,lock,cno,prD,cpD,doD,trk", "s------------", "F------------" }, \
|
2020-03-26 20:59:13 -03:00
|
|
|
{ LOG_ESC_MSG, sizeof(log_Esc), \
|
|
|
|
"ESC", "QBeCCcHc", "TimeUS,Instance,RPM,Volt,Curr,Temp,CTot,MotTemp", "s#qvAO-O", "F-BBBB-B" }, \
|
2020-01-04 00:25:55 -04:00
|
|
|
{ LOG_CSRV_MSG, sizeof(log_CSRV), \
|
|
|
|
"CSRV","QBfffB","TimeUS,Id,Pos,Force,Speed,Pow", "s#---%", "F-0000" }, \
|
2020-01-04 00:56:44 -04:00
|
|
|
{ LOG_CESC_MSG, sizeof(log_CESC), \
|
|
|
|
"CESC","QBIfffiB","TimeUS,Id,ECnt,Voltage,Curr,Temp,RPM,Pow", "s#-vAOq%", "F-000000" }, \
|
2015-11-05 19:50:54 -04:00
|
|
|
{ LOG_COMPASS2_MSG, sizeof(log_Compass), \
|
2015-12-07 20:51:46 -04:00
|
|
|
"MAG2",MAG_FMT, MAG_LABELS, MAG_UNITS, MAG_MULTS }, \
|
2015-11-05 19:50:54 -04:00
|
|
|
{ LOG_COMPASS3_MSG, sizeof(log_Compass), \
|
2015-12-07 20:51:46 -04:00
|
|
|
"MAG3",MAG_FMT, MAG_LABELS, MAG_UNITS, MAG_MULTS }, \
|
2015-11-05 19:50:54 -04:00
|
|
|
{ LOG_ACC1_MSG, sizeof(log_ACCEL), \
|
2015-12-07 20:51:46 -04:00
|
|
|
"ACC1", ACC_FMT, ACC_LABELS, ACC_UNITS, ACC_MULTS }, \
|
2015-11-05 19:50:54 -04:00
|
|
|
{ LOG_ACC2_MSG, sizeof(log_ACCEL), \
|
2015-12-07 20:51:46 -04:00
|
|
|
"ACC2", ACC_FMT, ACC_LABELS, ACC_UNITS, ACC_MULTS }, \
|
2015-11-05 19:50:54 -04:00
|
|
|
{ LOG_ACC3_MSG, sizeof(log_ACCEL), \
|
2015-12-07 20:51:46 -04:00
|
|
|
"ACC3", ACC_FMT, ACC_LABELS, ACC_UNITS, ACC_MULTS }, \
|
2015-11-05 19:50:54 -04:00
|
|
|
{ LOG_GYR1_MSG, sizeof(log_GYRO), \
|
2015-12-07 20:51:46 -04:00
|
|
|
"GYR1", GYR_FMT, GYR_LABELS, GYR_UNITS, GYR_MULTS }, \
|
2015-11-05 19:50:54 -04:00
|
|
|
{ LOG_GYR2_MSG, sizeof(log_GYRO), \
|
2015-12-07 20:51:46 -04:00
|
|
|
"GYR2", GYR_FMT, GYR_LABELS, GYR_UNITS, GYR_MULTS }, \
|
2015-11-05 19:50:54 -04:00
|
|
|
{ LOG_GYR3_MSG, sizeof(log_GYRO), \
|
2015-12-07 20:51:46 -04:00
|
|
|
"GYR3", GYR_FMT, GYR_LABELS, GYR_UNITS, GYR_MULTS }, \
|
2015-11-05 19:50:54 -04:00
|
|
|
{ LOG_PIDR_MSG, sizeof(log_PID), \
|
2015-12-07 20:51:46 -04:00
|
|
|
"PIDR", PID_FMT, PID_LABELS, PID_UNITS, PID_MULTS }, \
|
2015-11-05 19:50:54 -04:00
|
|
|
{ LOG_PIDP_MSG, sizeof(log_PID), \
|
2015-12-07 20:51:46 -04:00
|
|
|
"PIDP", PID_FMT, PID_LABELS, PID_UNITS, PID_MULTS }, \
|
2015-11-05 19:50:54 -04:00
|
|
|
{ LOG_PIDY_MSG, sizeof(log_PID), \
|
2015-12-07 20:51:46 -04:00
|
|
|
"PIDY", PID_FMT, PID_LABELS, PID_UNITS, PID_MULTS }, \
|
2015-11-05 19:50:54 -04:00
|
|
|
{ LOG_PIDA_MSG, sizeof(log_PID), \
|
2015-12-07 20:51:46 -04:00
|
|
|
"PIDA", PID_FMT, PID_LABELS, PID_UNITS, PID_MULTS }, \
|
2015-11-05 19:50:54 -04:00
|
|
|
{ LOG_PIDS_MSG, sizeof(log_PID), \
|
2015-12-07 20:51:46 -04:00
|
|
|
"PIDS", PID_FMT, PID_LABELS, PID_UNITS, PID_MULTS }, \
|
2017-10-12 19:26:43 -03:00
|
|
|
{ LOG_DSTL_MSG, sizeof(log_DSTL), \
|
2015-12-07 20:51:46 -04:00
|
|
|
"DSTL", "QBfLLeccfeffff", "TimeUS,Stg,THdg,Lat,Lng,Alt,XT,Travel,L1I,Loiter,Des,P,I,D", "s??DUm--------", "F??000--------" }, \
|
2015-11-05 19:50:54 -04:00
|
|
|
{ LOG_BAR2_MSG, sizeof(log_BARO), \
|
2015-12-07 20:51:46 -04:00
|
|
|
"BAR2", BARO_FMT, BARO_LABELS, BARO_UNITS, BARO_MULTS }, \
|
2015-11-05 19:50:54 -04:00
|
|
|
{ LOG_BAR3_MSG, sizeof(log_BARO), \
|
2015-12-07 20:51:46 -04:00
|
|
|
"BAR3", BARO_FMT, BARO_LABELS, BARO_UNITS, BARO_MULTS }, \
|
2015-11-05 19:50:54 -04:00
|
|
|
{ LOG_VIBE_MSG, sizeof(log_Vibe), \
|
2015-12-07 20:51:46 -04:00
|
|
|
"VIBE", "QfffIII", "TimeUS,VibeX,VibeY,VibeZ,Clip0,Clip1,Clip2", "s------", "F------" }, \
|
2015-11-05 19:50:54 -04:00
|
|
|
{ LOG_IMUDT_MSG, sizeof(log_IMUDT), \
|
2015-12-07 20:51:46 -04:00
|
|
|
"IMT",IMT_FMT,IMT_LABELS, IMT_UNITS, IMT_MULTS }, \
|
2015-11-05 19:50:54 -04:00
|
|
|
{ LOG_IMUDT2_MSG, sizeof(log_IMUDT), \
|
2015-12-07 20:51:46 -04:00
|
|
|
"IMT2",IMT_FMT,IMT_LABELS, IMT_UNITS, IMT_MULTS }, \
|
2015-11-05 19:50:54 -04:00
|
|
|
{ LOG_IMUDT3_MSG, sizeof(log_IMUDT), \
|
2015-12-07 20:51:46 -04:00
|
|
|
"IMT3",IMT_FMT,IMT_LABELS, IMT_UNITS, IMT_MULTS }, \
|
2017-09-01 08:05:16 -03:00
|
|
|
{ LOG_ISBH_MSG, sizeof(log_ISBH), \
|
2015-12-07 20:51:46 -04:00
|
|
|
"ISBH",ISBH_FMT,ISBH_LABELS,ISBH_UNITS,ISBH_MULTS }, \
|
2017-09-01 08:05:16 -03:00
|
|
|
{ LOG_ISBD_MSG, sizeof(log_ISBD), \
|
2015-12-07 20:51:46 -04:00
|
|
|
"ISBD",ISBD_FMT,ISBD_LABELS, ISBD_UNITS, ISBD_MULTS }, \
|
2015-11-05 19:50:54 -04:00
|
|
|
{ LOG_ORGN_MSG, sizeof(log_ORGN), \
|
2015-12-07 20:51:46 -04:00
|
|
|
"ORGN","QBLLe","TimeUS,Type,Lat,Lng,Alt", "s-DUm", "F-GGB" }, \
|
2017-08-25 04:18:26 -03:00
|
|
|
{ LOG_DF_FILE_STATS, sizeof(log_DSF), \
|
2018-08-07 07:22:21 -03:00
|
|
|
"DSF", "QIHIIII", "TimeUS,Dp,Blk,Bytes,FMn,FMx,FAv", "s--b---", "F--0---" }, \
|
2015-11-05 19:50:54 -04:00
|
|
|
{ LOG_RPM_MSG, sizeof(log_RPM), \
|
2015-12-07 20:51:46 -04:00
|
|
|
"RPM", "Qff", "TimeUS,rpm1,rpm2", "sqq", "F00" }, \
|
2016-03-24 22:11:11 -03:00
|
|
|
{ LOG_RATE_MSG, sizeof(log_Rate), \
|
2015-12-07 20:51:46 -04:00
|
|
|
"RATE", "Qffffffffffff", "TimeUS,RDes,R,ROut,PDes,P,POut,YDes,Y,YOut,ADes,A,AOut", "skk-kk-kk-oo-", "F?????????BB-" }, \
|
2016-07-03 23:14:26 -03:00
|
|
|
{ LOG_RALLY_MSG, sizeof(log_Rally), \
|
2018-03-01 01:45:18 -04:00
|
|
|
"RALY", "QBBLLh", "TimeUS,Tot,Seq,Lat,Lng,Alt", "s--DUm", "F--GGB" }, \
|
2019-02-06 22:30:09 -04:00
|
|
|
{ LOG_MAV_MSG, sizeof(log_MAV), \
|
2020-04-14 19:54:22 -03:00
|
|
|
"MAV", "QBHHHBHH", "TimeUS,chan,txp,rxp,rxdp,flags,ss,tf", "s#----s-", "F-000-C-" }, \
|
2017-04-03 23:47:04 -03:00
|
|
|
{ LOG_VISUALODOM_MSG, sizeof(log_VisualOdom), \
|
2018-09-02 09:27:58 -03:00
|
|
|
"VISO", "Qffffffff", "TimeUS,dt,AngDX,AngDY,AngDZ,PosDX,PosDY,PosDZ,conf", "ssrrrmmm-", "FF000000-" }, \
|
2020-03-26 01:00:30 -03:00
|
|
|
{ LOG_VISUALPOS_MSG, sizeof(log_VisualPosition), \
|
2020-06-25 00:45:17 -03:00
|
|
|
"VISP", "QQIffffffffB", "TimeUS,RTimeUS,CTimeMS,PX,PY,PZ,Roll,Pitch,Yaw,PErr,AErr,RstCnt", "sssmmmddhmd-", "FFC00000000-" }, \
|
2020-05-15 01:30:57 -03:00
|
|
|
{ LOG_VISUALVEL_MSG, sizeof(log_VisualVelocity), \
|
2020-06-25 00:45:17 -03:00
|
|
|
"VISV", "QQIffffB", "TimeUS,RTimeUS,CTimeMS,VX,VY,VZ,VErr,RstCnt", "sssnnnn-", "FFC0000-" }, \
|
2018-09-02 09:27:58 -03:00
|
|
|
{ LOG_OPTFLOW_MSG, sizeof(log_Optflow), \
|
2020-04-05 20:13:20 -03:00
|
|
|
"OF", "QBffff", "TimeUS,Qual,flowX,flowY,bodyX,bodyY", "s-EEnn", "F-0000" }, \
|
2019-02-05 01:00:28 -04:00
|
|
|
{ LOG_WHEELENCODER_MSG, sizeof(log_WheelEncoder), \
|
2019-02-23 15:31:20 -04:00
|
|
|
"WENC", "Qfbfb", "TimeUS,Dist0,Qual0,Dist1,Qual1", "sm-m-", "F0-0-" }, \
|
|
|
|
{ LOG_ADSB_MSG, sizeof(log_ADSB), \
|
2019-12-09 05:10:39 -04:00
|
|
|
"ADSB", "QIiiiHHhH", "TimeUS,ICAO_address,Lat,Lng,Alt,Heading,Hor_vel,Ver_vel,Squark", "s-DUmhnn-", "F-GGCBCC-" }, \
|
|
|
|
{ LOG_EVENT_MSG, sizeof(log_Event), \
|
|
|
|
"EV", "QB", "TimeUS,Id", "s-", "F-" }, \
|
|
|
|
{ LOG_ARM_DISARM_MSG, sizeof(log_Arm_Disarm), \
|
2020-02-11 21:25:28 -04:00
|
|
|
"ARM", "QBIBB", "TimeUS,ArmState,ArmChecks,Forced,Method", "s----", "F----" }, \
|
2019-12-09 05:10:39 -04:00
|
|
|
{ LOG_ERROR_MSG, sizeof(log_Error), \
|
2020-07-24 02:59:41 -03:00
|
|
|
"ERR", "QBB", "TimeUS,Subsys,ECode", "s--", "F--" }, \
|
|
|
|
{ LOG_WINCH_MSG, sizeof(log_Winch), \
|
|
|
|
"WINC", "QBBBBBfffHfb", "TimeUS,Heal,ThEnd,Mov,Clut,Mode,DLen,Len,DRate,Tens,Vcc,Temp", "s-----mmn?vO", "F-----000000" }
|
2015-11-05 19:50:54 -04:00
|
|
|
|
2020-05-20 23:53:46 -03:00
|
|
|
// @LoggerMessage: SBPH
|
|
|
|
// @Description: Swift Health Data
|
|
|
|
// @Field: TimeUS: Time since system startup
|
|
|
|
// @Field: CrcError: Number of packet CRC errors on serial connection
|
|
|
|
// @Field: LastInject: Timestamp of last raw data injection to GPS
|
|
|
|
// @Field: IARhyp: Current number of integer ambiguity hypotheses
|
|
|
|
|
|
|
|
// @LoggerMessage: SBRH
|
|
|
|
// @Description: Swift Raw Message Data
|
|
|
|
// @Field: TimeUS: Time since system startup
|
|
|
|
// @Field: msg_flag: Swift message type
|
|
|
|
// @Field: 1: Sender ID
|
|
|
|
// @Field: 2: index; always 1
|
|
|
|
// @Field: 3: pages; number of pages received
|
|
|
|
// @Field: 4: msg length; number of bytes received
|
|
|
|
// @Field: 5: unused; always zero
|
|
|
|
// @Field: 6: data received from device
|
|
|
|
|
2015-11-09 18:10:46 -04:00
|
|
|
#define LOG_SBP_STRUCTURES \
|
|
|
|
{ LOG_MSG_SBPHEALTH, sizeof(log_SbpHealth), \
|
2015-12-07 20:51:46 -04:00
|
|
|
"SBPH", "QIII", "TimeUS,CrcError,LastInject,IARhyp", "s---", "F---" }, \
|
2017-06-26 12:41:24 -03:00
|
|
|
{ LOG_MSG_SBPRAWH, sizeof(log_SbpRAWH), \
|
2015-12-07 20:51:46 -04:00
|
|
|
"SBRH", "QQQQQQQQ", "TimeUS,msg_flag,1,2,3,4,5,6", "s--b----", "F--0----" }, \
|
2017-06-26 12:41:24 -03:00
|
|
|
{ LOG_MSG_SBPRAWM, sizeof(log_SbpRAWM), \
|
2015-12-07 20:51:46 -04:00
|
|
|
"SBRM", "QQQQQQQQQQQQQQQ", "TimeUS,msg_flag,1,2,3,4,5,6,7,8,9,10,11,12,13", "s??????????????", "F??????????????" }, \
|
2017-06-29 11:17:10 -03:00
|
|
|
{ LOG_MSG_SBPEVENT, sizeof(log_SbpEvent), \
|
2019-12-09 05:10:39 -04:00
|
|
|
"SBRE", "QHIiBB", "TimeUS,GWk,GMS,ns_residual,level,quality", "s?????", "F?????" }
|
2019-03-24 22:04:59 -03:00
|
|
|
|
2019-12-09 05:10:39 -04:00
|
|
|
#define LOG_COMMON_STRUCTURES LOG_BASE_STRUCTURES, LOG_SBP_STRUCTURES
|
2015-11-05 19:50:54 -04:00
|
|
|
|
2018-03-07 19:13:26 -04:00
|
|
|
// message types 0 to 63 reserved for vehicle specific use
|
2015-11-05 19:50:54 -04:00
|
|
|
|
|
|
|
// message types for common messages
|
2018-03-31 11:40:01 -03:00
|
|
|
enum LogMessages : uint8_t {
|
2018-03-07 19:13:26 -04:00
|
|
|
LOG_NKF1_MSG = 64,
|
|
|
|
LOG_NKF2_MSG,
|
|
|
|
LOG_NKF3_MSG,
|
|
|
|
LOG_NKF4_MSG,
|
|
|
|
LOG_NKF5_MSG,
|
|
|
|
LOG_NKF10_MSG,
|
2019-12-06 03:12:50 -04:00
|
|
|
LOG_NKQ_MSG,
|
2018-03-07 19:13:26 -04:00
|
|
|
LOG_XKF1_MSG,
|
|
|
|
LOG_XKF2_MSG,
|
|
|
|
LOG_XKF3_MSG,
|
|
|
|
LOG_XKF4_MSG,
|
|
|
|
LOG_XKF5_MSG,
|
|
|
|
LOG_XKF10_MSG,
|
2019-12-06 03:12:50 -04:00
|
|
|
LOG_XKQ_MSG,
|
2018-03-07 19:13:26 -04:00
|
|
|
LOG_XKFD_MSG,
|
|
|
|
LOG_XKV1_MSG,
|
|
|
|
LOG_XKV2_MSG,
|
2015-11-05 19:50:54 -04:00
|
|
|
LOG_PARAMETER_MSG,
|
|
|
|
LOG_GPS_MSG,
|
|
|
|
LOG_GPS2_MSG,
|
2017-03-10 02:48:51 -04:00
|
|
|
LOG_GPSB_MSG,
|
2015-11-05 19:50:54 -04:00
|
|
|
LOG_IMU_MSG,
|
|
|
|
LOG_MESSAGE_MSG,
|
|
|
|
LOG_RCIN_MSG,
|
|
|
|
LOG_RCOUT_MSG,
|
|
|
|
LOG_RSSI_MSG,
|
|
|
|
LOG_IMU2_MSG,
|
|
|
|
LOG_BARO_MSG,
|
|
|
|
LOG_POWR_MSG,
|
|
|
|
LOG_AHR2_MSG,
|
|
|
|
LOG_SIMSTATE_MSG,
|
|
|
|
LOG_CMD_MSG,
|
2019-08-22 22:21:39 -03:00
|
|
|
LOG_MAVLINK_COMMAND_MSG,
|
2015-11-05 19:50:54 -04:00
|
|
|
LOG_RADIO_MSG,
|
|
|
|
LOG_ATRP_MSG,
|
|
|
|
LOG_CAMERA_MSG,
|
|
|
|
LOG_IMU3_MSG,
|
|
|
|
LOG_TERRAIN_MSG,
|
|
|
|
LOG_GPS_UBX1_MSG,
|
|
|
|
LOG_GPS_UBX2_MSG,
|
2020-03-26 20:59:13 -03:00
|
|
|
LOG_ESC_MSG,
|
2020-01-04 00:25:55 -04:00
|
|
|
LOG_CSRV_MSG,
|
2020-01-04 00:56:44 -04:00
|
|
|
LOG_CESC_MSG,
|
2015-11-05 19:50:54 -04:00
|
|
|
LOG_BAR2_MSG,
|
|
|
|
LOG_ARSP_MSG,
|
|
|
|
LOG_ATTITUDE_MSG,
|
|
|
|
LOG_CURRENT_MSG,
|
2017-05-30 22:44:40 -03:00
|
|
|
LOG_CURRENT_CELLS_MSG,
|
2015-11-05 19:50:54 -04:00
|
|
|
LOG_COMPASS_MSG,
|
|
|
|
LOG_COMPASS2_MSG,
|
|
|
|
LOG_COMPASS3_MSG,
|
|
|
|
LOG_MODE_MSG,
|
|
|
|
LOG_GPS_RAW_MSG,
|
2020-01-15 04:00:49 -04:00
|
|
|
|
|
|
|
// LOG_GPS_RAWH_MSG is used as a check for duplicates. Do not add between this and LOG_FORMAT_MSG
|
2015-11-05 19:50:54 -04:00
|
|
|
LOG_GPS_RAWH_MSG,
|
2020-01-15 04:00:49 -04:00
|
|
|
|
|
|
|
LOG_FORMAT_MSG = 128, // this must remain #128
|
|
|
|
|
2015-11-05 19:50:54 -04:00
|
|
|
LOG_GPS_RAWS_MSG,
|
|
|
|
LOG_ACC1_MSG,
|
|
|
|
LOG_ACC2_MSG,
|
|
|
|
LOG_ACC3_MSG,
|
|
|
|
LOG_GYR1_MSG,
|
|
|
|
LOG_GYR2_MSG,
|
|
|
|
LOG_GYR3_MSG,
|
|
|
|
LOG_POS_MSG,
|
|
|
|
LOG_PIDR_MSG,
|
|
|
|
LOG_PIDP_MSG,
|
|
|
|
LOG_PIDY_MSG,
|
|
|
|
LOG_PIDA_MSG,
|
|
|
|
LOG_PIDS_MSG,
|
2017-10-12 19:26:43 -03:00
|
|
|
LOG_DSTL_MSG,
|
2015-11-05 19:50:54 -04:00
|
|
|
LOG_VIBE_MSG,
|
|
|
|
LOG_IMUDT_MSG,
|
|
|
|
LOG_IMUDT2_MSG,
|
|
|
|
LOG_IMUDT3_MSG,
|
|
|
|
LOG_ORGN_MSG,
|
|
|
|
LOG_RPM_MSG,
|
|
|
|
LOG_GPA_MSG,
|
|
|
|
LOG_GPA2_MSG,
|
2017-03-10 02:48:51 -04:00
|
|
|
LOG_GPAB_MSG,
|
2015-11-05 19:50:54 -04:00
|
|
|
LOG_RFND_MSG,
|
|
|
|
LOG_BAR3_MSG,
|
2019-02-11 04:38:01 -04:00
|
|
|
LOG_MAV_STATS,
|
2015-12-07 20:51:46 -04:00
|
|
|
LOG_FORMAT_UNITS_MSG,
|
|
|
|
LOG_UNIT_MSG,
|
|
|
|
LOG_MULT_MSG,
|
2015-11-09 18:10:46 -04:00
|
|
|
|
|
|
|
LOG_MSG_SBPHEALTH,
|
|
|
|
LOG_MSG_SBPLLH,
|
|
|
|
LOG_MSG_SBPBASELINE,
|
|
|
|
LOG_MSG_SBPTRACKING1,
|
|
|
|
LOG_MSG_SBPTRACKING2,
|
2017-06-26 12:41:24 -03:00
|
|
|
LOG_MSG_SBPRAWH,
|
|
|
|
LOG_MSG_SBPRAWM,
|
2017-06-29 11:17:10 -03:00
|
|
|
LOG_MSG_SBPEVENT,
|
2016-01-06 20:29:52 -04:00
|
|
|
LOG_TRIGGER_MSG,
|
2015-11-09 18:10:46 -04:00
|
|
|
|
2016-03-24 22:11:11 -03:00
|
|
|
LOG_RATE_MSG,
|
2016-07-03 23:14:26 -03:00
|
|
|
LOG_RALLY_MSG,
|
2017-04-03 23:47:04 -03:00
|
|
|
LOG_VISUALODOM_MSG,
|
2020-03-26 01:00:30 -03:00
|
|
|
LOG_VISUALPOS_MSG,
|
2017-04-09 08:17:17 -03:00
|
|
|
LOG_AOA_SSA_MSG,
|
2017-04-18 11:43:03 -03:00
|
|
|
LOG_BEACON_MSG,
|
2017-07-14 14:00:13 -03:00
|
|
|
LOG_PROXIMITY_MSG,
|
2017-08-25 04:18:26 -03:00
|
|
|
LOG_DF_FILE_STATS,
|
2017-07-26 14:09:33 -03:00
|
|
|
LOG_SRTL_MSG,
|
2017-09-01 08:05:16 -03:00
|
|
|
LOG_ISBH_MSG,
|
|
|
|
LOG_ISBD_MSG,
|
2017-11-03 03:37:40 -03:00
|
|
|
LOG_ASP2_MSG,
|
2017-11-15 23:20:17 -04:00
|
|
|
LOG_PERFORMANCE_MSG,
|
2018-09-02 09:27:58 -03:00
|
|
|
LOG_OPTFLOW_MSG,
|
2019-02-01 07:29:43 -04:00
|
|
|
LOG_EVENT_MSG,
|
2019-02-05 01:00:28 -04:00
|
|
|
LOG_WHEELENCODER_MSG,
|
2019-02-06 22:30:09 -04:00
|
|
|
LOG_MAV_MSG,
|
2019-03-24 22:04:59 -03:00
|
|
|
LOG_ERROR_MSG,
|
2019-02-23 15:31:20 -04:00
|
|
|
LOG_ADSB_MSG,
|
2019-05-03 08:25:08 -03:00
|
|
|
LOG_ARM_DISARM_MSG,
|
2019-08-05 03:22:05 -03:00
|
|
|
LOG_OA_BENDYRULER_MSG,
|
|
|
|
LOG_OA_DIJKSTRA_MSG,
|
2020-05-15 01:30:57 -03:00
|
|
|
LOG_VISUALVEL_MSG,
|
2020-07-21 14:00:18 -03:00
|
|
|
LOG_SIMPLE_AVOID_MSG,
|
2020-07-24 02:59:41 -03:00
|
|
|
LOG_WINCH_MSG,
|
2019-03-24 22:04:59 -03:00
|
|
|
|
2017-11-15 23:20:17 -04:00
|
|
|
_LOG_LAST_MSG_
|
2015-11-05 19:50:54 -04:00
|
|
|
};
|
|
|
|
|
2017-11-15 23:20:17 -04:00
|
|
|
static_assert(_LOG_LAST_MSG_ <= 255, "Too many message formats");
|
2020-01-15 04:00:49 -04:00
|
|
|
static_assert(LOG_GPS_RAWH_MSG < 128, "Duplicate message format IDs");
|
2017-11-15 23:20:17 -04:00
|
|
|
|
2015-11-05 19:50:54 -04:00
|
|
|
enum LogOriginType {
|
|
|
|
ekf_origin = 0,
|
|
|
|
ahrs_home = 1
|
|
|
|
};
|