1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2025-07-06 10:55:42 -04:00

Add altitude, speed and heading columns to log

This commit is contained in:
Jon Beniston 2023-11-07 09:42:13 +00:00
parent 44d61e259b
commit ed2c3ac08b

View File

@ -233,11 +233,16 @@ bool RadiosondeDemod::handleMessage(const Message& cmd)
if (frame->m_posValid) if (frame->m_posValid)
{ {
m_logStream << frame->m_latitude << "," m_logStream << frame->m_latitude << ","
<< frame->m_longitude << ","; << frame->m_longitude << ","
<< frame->m_height << ","
<< frame->m_speed << ","
<< frame->m_verticalRate << ","
<< frame->m_heading << ","
;
} }
else else
{ {
m_logStream << ",,"; m_logStream << ",,,,,,";
} }
if (frame->m_measValid) if (frame->m_measValid)
{ {
@ -378,7 +383,7 @@ void RadiosondeDemod::applySettings(const RadiosondeDemodSettings& settings, boo
if (newFile) if (newFile)
{ {
// Write header // 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 else