From e695af2100b66177b20eba8a7f854068b5d896f0 Mon Sep 17 00:00:00 2001 From: Andreas Bircher Date: Mon, 22 Feb 2016 13:40:13 +0100 Subject: [PATCH] fixing the logging of trigger information --- src/modules/sdlog2/sdlog2.c | 1 - src/modules/sdlog2/sdlog2_messages.h | 3 +-- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/modules/sdlog2/sdlog2.c b/src/modules/sdlog2/sdlog2.c index 005a133c68..9563115d07 100644 --- a/src/modules/sdlog2/sdlog2.c +++ b/src/modules/sdlog2/sdlog2.c @@ -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); } diff --git a/src/modules/sdlog2/sdlog2_messages.h b/src/modules/sdlog2/sdlog2_messages.h index 576b9b7870..cbceee35ee 100644 --- a/src/modules/sdlog2/sdlog2_messages.h +++ b/src/modules/sdlog2/sdlog2_messages.h @@ -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 */