1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2026-06-07 00:14:49 -04:00

AIS, DSC, End-of-Train, Packet, Radiosonde: All packet date/time to come from File Input device or system clock.

This commit is contained in:
srcejon
2024-03-03 21:24:54 +00:00
parent ae64f2c652
commit 2a29a69a3e
44 changed files with 434 additions and 87 deletions
@@ -46,6 +46,7 @@ void PacketDemodSettings::resetToDefaults()
m_udpPort = 9999;
m_logFilename = "packet_log.csv";
m_logEnabled = false;
m_useFileTime = false;
m_rgbColor = QColor(0, 105, 2).rgb();
m_title = "Packet Demodulator";
@@ -103,6 +104,8 @@ QByteArray PacketDemodSettings::serialize() const
s.writeBlob(29, m_geometryBytes);
s.writeBool(30, m_hidden);
s.writeBool(31, m_useFileTime);
for (int i = 0; i < PACKETDEMOD_COLUMNS; i++) {
s.writeS32(100 + i, m_columnIndexes[i]);
}
@@ -185,6 +188,8 @@ bool PacketDemodSettings::deserialize(const QByteArray& data)
d.readBlob(29, &m_geometryBytes);
d.readBool(30, &m_hidden, false);
d.readBool(31, &m_useFileTime, false);
for (int i = 0; i < PACKETDEMOD_COLUMNS; i++) {
d.readS32(100 + i, &m_columnIndexes[i], i);
}