From ed2c3ac08b39f722fb2c545a10ff7f1fc1067eb4 Mon Sep 17 00:00:00 2001 From: Jon Beniston Date: Tue, 7 Nov 2023 09:42:13 +0000 Subject: [PATCH] Add altitude, speed and heading columns to log --- plugins/channelrx/demodradiosonde/radiosondedemod.cpp | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/plugins/channelrx/demodradiosonde/radiosondedemod.cpp b/plugins/channelrx/demodradiosonde/radiosondedemod.cpp index b9e1f9e8f..0f4978771 100644 --- a/plugins/channelrx/demodradiosonde/radiosondedemod.cpp +++ b/plugins/channelrx/demodradiosonde/radiosondedemod.cpp @@ -233,11 +233,16 @@ bool RadiosondeDemod::handleMessage(const Message& cmd) if (frame->m_posValid) { m_logStream << frame->m_latitude << "," - << frame->m_longitude << ","; + << frame->m_longitude << "," + << frame->m_height << "," + << frame->m_speed << "," + << frame->m_verticalRate << "," + << frame->m_heading << "," + ; } else { - m_logStream << ",,"; + m_logStream << ",,,,,,"; } if (frame->m_measValid) { @@ -378,7 +383,7 @@ void RadiosondeDemod::applySettings(const RadiosondeDemodSettings& settings, boo if (newFile) { // Write header - m_logStream << "Date,Time,Data,Serial,Frame,Lat,Lon,P (hPa),T (C), U (%)\n"; + m_logStream << "Date,Time,Data,Serial,Frame,Lat,Lon,Alt (m),Speed (m/s),V/R (m/s),Heading,P (hPa),T (C), U (%)\n"; } } else