mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-11-13 20:01:46 -05:00
Fix ADSB demod: Message length
This commit is contained in:
parent
c913b20a27
commit
a99082bda9
@ -262,7 +262,7 @@ void ADSBDemodSinkWorker::run()
|
|||||||
if (m_sink->getMessageQueueToGUI() && ((df == 4) || (df == 5) || (df == 20) || (df == 21)))
|
if (m_sink->getMessageQueueToGUI() && ((df == 4) || (df == 5) || (df == 20) || (df == 21)))
|
||||||
{
|
{
|
||||||
ADSBDemodReport::MsgReportADSB *msg = ADSBDemodReport::MsgReportADSB::create(
|
ADSBDemodReport::MsgReportADSB *msg = ADSBDemodReport::MsgReportADSB::create(
|
||||||
QByteArray((char*)data, sizeof(data)),
|
QByteArray((char*)data, bytes),
|
||||||
preambleCorrelation * m_correlationScale,
|
preambleCorrelation * m_correlationScale,
|
||||||
preambleCorrelationOnes / samplesPerChip,
|
preambleCorrelationOnes / samplesPerChip,
|
||||||
rxDateTime(firstIdx, readBuffer),
|
rxDateTime(firstIdx, readBuffer),
|
||||||
@ -273,7 +273,7 @@ void ADSBDemodSinkWorker::run()
|
|||||||
if (m_sink->getMessageQueueToWorker())
|
if (m_sink->getMessageQueueToWorker())
|
||||||
{
|
{
|
||||||
ADSBDemodReport::MsgReportADSB *msg = ADSBDemodReport::MsgReportADSB::create(
|
ADSBDemodReport::MsgReportADSB *msg = ADSBDemodReport::MsgReportADSB::create(
|
||||||
QByteArray((char*)data, sizeof(data)),
|
QByteArray((char*)data, bytes),
|
||||||
preambleCorrelation * m_correlationScale,
|
preambleCorrelation * m_correlationScale,
|
||||||
preambleCorrelationOnes / samplesPerChip,
|
preambleCorrelationOnes / samplesPerChip,
|
||||||
rxDateTime(firstIdx, readBuffer),
|
rxDateTime(firstIdx, readBuffer),
|
||||||
|
Loading…
Reference in New Issue
Block a user