diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2018-03-03 18:03:17 +0100 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2018-03-03 18:03:17 +0100 |
commit | 618c88a6e3c594b8382b4c61710a968c6adcdf49 (patch) | |
tree | 314e99e56cc0715fdcbeed2189fc6056a5c6e4d0 /src/fig0_10.cpp | |
parent | 4e196f337303304cc9cb15b5d7d345646486e68f (diff) | |
download | etisnoop-618c88a6e3c594b8382b4c61710a968c6adcdf49.tar.gz etisnoop-618c88a6e3c594b8382b4c61710a968c6adcdf49.tar.bz2 etisnoop-618c88a6e3c594b8382b4c61710a968c6adcdf49.zip |
Output YAML
Diffstat (limited to 'src/fig0_10.cpp')
-rw-r--r-- | src/fig0_10.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/fig0_10.cpp b/src/fig0_10.cpp index b4af859..1b0158b 100644 --- a/src/fig0_10.cpp +++ b/src/fig0_10.cpp @@ -1,6 +1,6 @@ /* Copyright (C) 2014 CSP Innovazione nelle ICT s.c.a r.l. (http://www.csp.it/) - Copyright (C) 2017 Matthias P. Braendli (http://www.opendigitalradio.org) + Copyright (C) 2018 Matthias P. Braendli (http://www.opendigitalradio.org) Copyright (C) 2015 Data Path This program is free software: you can redistribute it and/or modify @@ -59,19 +59,19 @@ fig_result_t fig0_10(fig0_common_t& fig0, const display_settings_t &disp) uint8_t seconds = f[5] >> 2; uint16_t milliseconds = ((uint16_t)(f[5] & 0x3) << 8) | f[6]; - r.msgs.emplace_back("long form"); + r.msgs.emplace_back("form=long"); r.msgs.push_back(strprintf("MJD=0x%X %s", MJD, dateStr)); - r.msgs.push_back(strprintf("LSI %u", LSI)); - r.msgs.push_back(strprintf("ConfInd %u", ConfInd)); - r.msgs.push_back(strprintf("UTC Time: %02d:%02d:%02d.%d", + r.msgs.push_back(strprintf("LSI=%u", LSI)); + r.msgs.push_back(strprintf("ConfInd=%u", ConfInd)); + r.msgs.push_back(strprintf("UTC Time=%02d:%02d:%02d.%d", hours, minutes, seconds, milliseconds)); } else { - r.msgs.emplace_back("short form"); + r.msgs.emplace_back("form=short"); r.msgs.push_back(strprintf("MJD=0x%X %s", MJD, dateStr)); - r.msgs.push_back(strprintf("LSI %u", LSI)); - r.msgs.push_back(strprintf("ConfInd %u", ConfInd)); - r.msgs.push_back(strprintf("UTC Time: %02d:%02d", hours, minutes)); + r.msgs.push_back(strprintf("LSI=%u", LSI)); + r.msgs.push_back(strprintf("ConfInd=%u", ConfInd)); + r.msgs.push_back(strprintf("UTC Time=%02d:%02d", hours, minutes)); } r.complete = true; |