sdlog2: FLOW message added, bug fixed in optical_flow topic

This commit is contained in:
Anton Babushkin
2013-06-25 21:04:08 +04:00
parent 85b5da8078
commit fdc7247fcf
3 changed files with 25 additions and 3 deletions
+13
View File
@@ -186,6 +186,18 @@ struct log_ARSP_s {
float pitch_rate_sp;
float yaw_rate_sp;
};
/* --- FLOW - OPTICAL FLOW --- */
#define LOG_FLOW_MSG 15
struct log_FLOW_s {
int16_t flow_raw_x;
int16_t flow_raw_y;
float flow_comp_x;
float flow_comp_y;
float distance;
uint8_t quality;
uint8_t sensor_id;
};
#pragma pack(pop)
/* construct list of all message formats */
@@ -205,6 +217,7 @@ static const struct log_format_s log_formats[] = {
LOG_FORMAT(OUT0, "ffffffff", "Out0,Out1,Out2,Out3,Out4,Out5,Out6,Out7"),
LOG_FORMAT(AIRS, "ff", "IndSpeed,TrueSpeed"),
LOG_FORMAT(ARSP, "fff", "RollRateSP,PitchRateSP,YawRateSP"),
LOG_FORMAT(FLOW, "hhfffBB", "RawX,RawY,CompX,CompY,Dist,Q,SensID"),
};
static const int log_formats_num = sizeof(log_formats) / sizeof(struct log_format_s);