diff options
author | sjwilks <sjwilks@gmail.com> | 2013-06-30 11:53:44 -0700 |
---|---|---|
committer | sjwilks <sjwilks@gmail.com> | 2013-06-30 11:53:44 -0700 |
commit | bff6eae3a2ac414b09d94fa4497c25d301a447a9 (patch) | |
tree | 4861ea3545bdcde0bc899458a8504bcda3217d50 /src/modules/sdlog2/sdlog2_messages.h | |
parent | 8191130bbc8f2cbd53e69a7bcd1a4d4b1b2d68bb (diff) | |
parent | aa04701c89f912d455f8d2cf7a09c367d3ddd4e6 (diff) | |
download | px4-firmware-bff6eae3a2ac414b09d94fa4497c25d301a447a9.tar.gz px4-firmware-bff6eae3a2ac414b09d94fa4497c25d301a447a9.tar.bz2 px4-firmware-bff6eae3a2ac414b09d94fa4497c25d301a447a9.zip |
Merge pull request #318 from PX4/global_pos_log
Added global position to logging
Diffstat (limited to 'src/modules/sdlog2/sdlog2_messages.h')
-rw-r--r-- | src/modules/sdlog2/sdlog2_messages.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/modules/sdlog2/sdlog2_messages.h b/src/modules/sdlog2/sdlog2_messages.h index c100e921b..1b2237d65 100644 --- a/src/modules/sdlog2/sdlog2_messages.h +++ b/src/modules/sdlog2/sdlog2_messages.h @@ -198,6 +198,17 @@ struct log_FLOW_s { uint8_t quality; uint8_t sensor_id; }; + +/* --- GPOS - GLOBAL POSITION ESTIMATE --- */ +#define LOG_GPOS_MSG 16 +struct log_GPOS_s { + int32_t lat; + int32_t lon; + float alt; + float vel_n; + float vel_e; + float vel_d; +}; #pragma pack(pop) /* construct list of all message formats */ @@ -218,6 +229,7 @@ static const struct log_format_s log_formats[] = { LOG_FORMAT(AIRS, "ff", "IndSpeed,TrueSpeed"), LOG_FORMAT(ARSP, "fff", "RollRateSP,PitchRateSP,YawRateSP"), LOG_FORMAT(FLOW, "hhfffBB", "RawX,RawY,CompX,CompY,Dist,Q,SensID"), + LOG_FORMAT(GPOS, "LLffff", "Lat,Lon,Alt,VelN,VelE,VelD"), }; static const int log_formats_num = sizeof(log_formats) / sizeof(struct log_format_s); |