mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-11-19 14:51:47 -05:00
97f55be6e9
Add support for animated 3D models. Downloaded zipped airplane database as 1/4 of the size. Add table context menu. Add airline and country images to text bubbles on maps. Fix calculation of ground speed when on surface. Fix position calculation when aircraft transistions from surface to air. Fix altitude calculation when Q-bit is set. Speed up processing of large log files. Add new airline logos.
101 lines
3.5 KiB
C++
101 lines
3.5 KiB
C++
///////////////////////////////////////////////////////////////////////////////////
|
|
// Copyright (C) 2019 Edouard Griffiths, F4EXB //
|
|
// Copyright (C) 2020 Jon Beniston, M7RCE //
|
|
// //
|
|
// This program is free software; you can redistribute it and/or modify //
|
|
// it under the terms of the GNU General Public License as published by //
|
|
// the Free Software Foundation as version 3 of the License, or //
|
|
// (at your option) any later version. //
|
|
// //
|
|
// This program is distributed in the hope that it will be useful, //
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of //
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the //
|
|
// GNU General Public License V3 for more details. //
|
|
// //
|
|
// You should have received a copy of the GNU General Public License //
|
|
// along with this program. If not, see <http://www.gnu.org/licenses/>. //
|
|
///////////////////////////////////////////////////////////////////////////////////
|
|
|
|
#ifndef PLUGINS_CHANNELRX_DEMOADSB_ADSBDEMODREPORT_H_
|
|
#define PLUGINS_CHANNELRX_DEMOADSB_ADSBDEMODREPORT_H_
|
|
|
|
#include <QObject>
|
|
#include <QByteArray>
|
|
#include <QDateTime>
|
|
|
|
#include "dsp/dsptypes.h"
|
|
#include "util/message.h"
|
|
#include "adsbdemodstats.h"
|
|
|
|
class ADSBDemodReport : public QObject
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
class MsgReportADSB : public Message {
|
|
MESSAGE_CLASS_DECLARATION
|
|
|
|
public:
|
|
QByteArray getData() const { return m_data; }
|
|
QDateTime getDateTime() const { return m_dateTime; }
|
|
float getPreambleCorrelation() const { return m_preambleCorrelation; }
|
|
float getCorrelationOnes() const { return m_correlationOnes; }
|
|
|
|
static MsgReportADSB* create(
|
|
QByteArray data,
|
|
float preambleCorrelation,
|
|
float correlationOnes,
|
|
QDateTime dateTime
|
|
)
|
|
{
|
|
return new MsgReportADSB(data, preambleCorrelation, correlationOnes, dateTime);
|
|
}
|
|
|
|
private:
|
|
QByteArray m_data;
|
|
QDateTime m_dateTime;
|
|
float m_preambleCorrelation;
|
|
float m_correlationOnes;
|
|
|
|
MsgReportADSB(
|
|
QByteArray data,
|
|
float preambleCorrelation,
|
|
float correlationOnes,
|
|
QDateTime dateTime
|
|
) :
|
|
Message(),
|
|
m_data(data),
|
|
m_preambleCorrelation(preambleCorrelation),
|
|
m_correlationOnes(correlationOnes),
|
|
m_dateTime(dateTime)
|
|
{
|
|
}
|
|
};
|
|
|
|
class MsgReportDemodStats : public Message {
|
|
MESSAGE_CLASS_DECLARATION
|
|
|
|
public:
|
|
ADSBDemodStats getDemodStats() const { return m_demodStats; }
|
|
|
|
static MsgReportDemodStats* create(ADSBDemodStats demodStats)
|
|
{
|
|
return new MsgReportDemodStats(demodStats);
|
|
}
|
|
|
|
private:
|
|
ADSBDemodStats m_demodStats;
|
|
|
|
MsgReportDemodStats(ADSBDemodStats demodStats) :
|
|
Message(),
|
|
m_demodStats(demodStats)
|
|
{
|
|
}
|
|
};
|
|
|
|
public:
|
|
ADSBDemodReport() {}
|
|
~ADSBDemodReport() {}
|
|
};
|
|
|
|
#endif // PLUGINS_CHANNELRX_DEMOADSB_ADSBDEMODREPORT_H_
|