Skip to content

Commit

Permalink
AP_DAL: document more replay messages
Browse files Browse the repository at this point in the history
  • Loading branch information
peterbarker authored and tridge committed Oct 14, 2024
1 parent d8b1096 commit e15f72c
Showing 1 changed file with 23 additions and 8 deletions.
31 changes: 23 additions & 8 deletions libraries/AP_DAL/LogStructure.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,19 +40,24 @@
LOG_RWOH_MSG, \
LOG_RBOH_MSG

// Replay Data Structures
// @LoggerMessage: RFRH
// @Description: Replay FRame Header
struct log_RFRH {
uint64_t time_us;
uint32_t time_flying_ms;
uint8_t _end;
};

// @LoggerMessage: RFRF
// @Description: Replay FRame data - Finished frame
struct log_RFRF {
uint8_t frame_types;
uint8_t core_slow;
uint8_t _end;
};

// @LoggerMessage: RFRN
// @Description: Replay FRame - aNother frame header
struct log_RFRN {
int32_t lat;
int32_t lng;
Expand All @@ -73,7 +78,8 @@ struct log_RFRN {
uint8_t _end;
};

// Replay Data Structure - Inertial Sensor header
// @LoggerMessage: RISH
// @Description: Replay Inertial Sensor header
struct log_RISH {
uint16_t loop_rate_hz;
uint8_t first_usable_gyro;
Expand All @@ -84,7 +90,8 @@ struct log_RISH {
uint8_t _end;
};

// Replay Data Structure - Inertial Sensor instance data
// @LoggerMessage: RISI
// @Description: Replay Inertial Sensor instance data
struct log_RISI {
Vector3f delta_velocity;
Vector3f delta_angle;
Expand All @@ -99,14 +106,14 @@ struct log_RISI {
};

// @LoggerMessage: REV2
// @Description: Replay Event
// @Description: Replay Event (EKF2)
struct log_REV2 {
uint8_t event;
uint8_t _end;
};

// @LoggerMessage: RSO2
// @Description: Replay Set Origin event
// @Description: Replay Set Origin event (EKF2)
struct log_RSO2 {
int32_t lat;
int32_t lng;
Expand All @@ -115,16 +122,22 @@ struct log_RSO2 {
};

// @LoggerMessage: RWA2
// @Description: Replay set-default-airspeed event
// @Description: Replay set-default-airspeed event (EKF2)
struct log_RWA2 {
float airspeed;
float uncertainty;
uint8_t _end;
};

// same structures for EKF3
// @LoggerMessage: REV3
// @Description: Replay Event (EKF3)
#define log_REV3 log_REV2
// @LoggerMessage: RSO3
// @Description: Replay Set Origin event (EKF3)
#define log_RSO3 log_RSO2
// @LoggerMessage: RWA3
// @Description: Replay set-default-airspeed event (EKF3)
#define log_RWA3 log_RWA2

// @LoggerMessage: REY3
Expand Down Expand Up @@ -220,14 +233,16 @@ struct log_RGPJ {
uint8_t _end;
};

// Replay Data Structure - Airspeed Sensor header
// @LoggerMessage: RASH
// @Description: Replay Airspeed Sensor Header
struct log_RASH {
uint8_t num_sensors;
uint8_t primary;
uint8_t _end;
};

// Replay Data Structure - Airspeed Sensor instance
// @LoggerMessage: RASI
// @Description: Replay Airspeed Sensor Instance data
struct log_RASI {
float airspeed;
uint32_t last_update_ms;
Expand Down

0 comments on commit e15f72c

Please sign in to comment.