fixing the logging of trigger information

This commit is contained in:
Andreas Bircher 2016-02-22 13:40:13 +01:00 committed by Lorenz Meier
parent 7abb699bc4
commit e695af2100
2 changed files with 1 additions and 3 deletions

View File

@ -1943,7 +1943,6 @@ int sdlog2_thread_main(int argc, char *argv[])
/* --- CAMERA TRIGGER --- */
if (copy_if_updated(ORB_ID(camera_trigger), &subs.cam_trig_sub, &buf.camera_trigger)) {
log_msg.msg_type = LOG_CAMT_MSG;
log_msg.body.log_CAMT.timestamp = buf.camera_trigger.timestamp;
log_msg.body.log_CAMT.seq = buf.camera_trigger.seq;
LOGBUFFER_WRITE_AND_COUNT(CAMT);
}

View File

@ -511,7 +511,6 @@ struct log_CTS_s {
/* --- CAMERA TRIGGER --- */
#define LOG_CAMT_MSG 48
struct log_CAMT_s {
uint64_t timestamp;
uint32_t seq;
};
@ -592,7 +591,7 @@ static const struct log_format_s log_formats[] = {
LOG_FORMAT(ENCD, "qfqf", "cnt0,vel0,cnt1,vel1"),
LOG_FORMAT(TSYN, "Q", "TimeOffset"),
LOG_FORMAT(MACS, "fff", "RRint,PRint,YRint"),
LOG_FORMAT(CAMT, "if", "timestamp,seq"),
LOG_FORMAT(CAMT, "I", "seq"),
/* system-level messages, ID >= 0x80 */
/* FMT: don't write format of format message, it's useless */