From c5bd5a1d6ec254598f5e7c0cc03a8a072e07d164 Mon Sep 17 00:00:00 2001 From: Skip Tavakkolian Date: Fri, 7 Jun 2013 15:46:08 -0700 Subject: [PATCH] Added text output for DF=17, subtype=[5-8] --- dump1090.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/dump1090.c b/dump1090.c index 942cc95..b5ae5ab 100644 --- a/dump1090.c +++ b/dump1090.c @@ -1238,6 +1238,14 @@ void displayModesMessage(struct modesMessage *mm) { printf(" Aircraft Type : %s\n", ac_type_str[mm->aircraft_type]); printf(" Identification : %s\n", mm->flight); + } else if (mm->metype >= 5 && mm->metype <= 8) { + printf(" Movement: %d", mm->velocity); + printf(" Track status: %d", mm->heading_is_valid); + printf(" Track: %d", mm->heading); + printf(" F flag : %s\n", mm->fflag ? "odd" : "even"); + printf(" T flag : %s\n", mm->tflag ? "UTC" : "non-UTC"); + printf(" Latitude : %d (not decoded)\n", mm->raw_latitude); + printf(" Longitude: %d (not decoded)\n", mm->raw_longitude); } else if (mm->metype >= 9 && mm->metype <= 18) { printf(" F flag : %s\n", mm->fflag ? "odd" : "even"); printf(" T flag : %s\n", mm->tflag ? "UTC" : "non-UTC");