1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2026-06-07 16:34:45 -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
@@ -48,6 +48,7 @@ void AISDemodSettings::resetToDefaults()
m_logFilename = "ais_log.csv";
m_logEnabled = false;
m_showSlotMap = false;
m_useFileTime = false;
m_rgbColor = QColor(102, 0, 0).rgb();
m_title = "AIS Demodulator";
m_streamIndex = 0;
@@ -105,6 +106,7 @@ QByteArray AISDemodSettings::serialize() const
s.writeBlob(27, m_geometryBytes);
s.writeBool(28, m_hidden);
s.writeBool(29, m_showSlotMap);
s.writeBool(30, m_useFileTime);
for (int i = 0; i < AISDEMOD_MESSAGE_COLUMNS; i++)
s.writeS32(100 + i, m_messageColumnIndexes[i]);
@@ -191,6 +193,7 @@ bool AISDemodSettings::deserialize(const QByteArray& data)
d.readBlob(27, &m_geometryBytes);
d.readBool(28, &m_hidden, false);
d.readBool(29, &m_showSlotMap, false);
d.readBool(30, &m_useFileTime, false);
for (int i = 0; i < AISDEMOD_MESSAGE_COLUMNS; i++) {
d.readS32(100 + i, &m_messageColumnIndexes[i], i);