From e118668925f1bd9d4b7c2783036b2fd339635ccc Mon Sep 17 00:00:00 2001 From: Oliver Jowett Date: Sat, 27 Sep 2014 16:45:39 +0100 Subject: [PATCH] Log message time and symbol phase when dumping message info. --- mode_s.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mode_s.c b/mode_s.c index 9c9903f..cb4da37 100644 --- a/mode_s.c +++ b/mode_s.c @@ -1181,6 +1181,9 @@ void displayModesMessage(struct modesMessage *mm) { printf("SNR: %d.%d dB\n", mm->signalLevel/5, 2*(mm->signalLevel%5)); + if (mm->timestampMsg) + printf("Time: %.2fus (phase: %d)\n", mm->timestampMsg / 12.0, (unsigned int) (360 * (mm->timestampMsg % 6) / 6)); + if (Modes.no_decode) { // Show DF type and address only; the rest is not decoded. printf("DF %d; address: %06x\n", mm->msgtype, mm->addr);