mirror of
https://github.com/f4exb/sdrangel.git
synced 2025-04-04 10:38:45 -04:00
commit
88f83b2732
@ -55,7 +55,7 @@ ADSBDemodSink::ADSBDemodSink() :
|
||||
ADSBDemodSink::~ADSBDemodSink()
|
||||
{
|
||||
for (int i = 0; i < m_buffers; i++)
|
||||
delete m_sampleBuffer[i];
|
||||
delete[] m_sampleBuffer[i];
|
||||
}
|
||||
|
||||
void ADSBDemodSink::feed(const SampleVector::const_iterator& begin, const SampleVector::const_iterator& end)
|
||||
@ -207,7 +207,7 @@ void ADSBDemodSink::init(int samplesPerBit)
|
||||
for (int i = 0; i < m_buffers; i++)
|
||||
{
|
||||
if (m_sampleBuffer[i])
|
||||
delete m_sampleBuffer[i];
|
||||
delete[] m_sampleBuffer[i];
|
||||
}
|
||||
|
||||
m_samplesPerFrame = samplesPerBit*(ADS_B_PREAMBLE_BITS+ADS_B_ES_BITS);
|
||||
|
@ -21,10 +21,6 @@
|
||||
#include <QDockWidget>
|
||||
#include <QMainWindow>
|
||||
#include <QDebug>
|
||||
#include <QQuickItem>
|
||||
#include <QGeoLocation>
|
||||
#include <QGeoCoordinate>
|
||||
#include <QQmlContext>
|
||||
#include <QMessageBox>
|
||||
#include <QAction>
|
||||
#include <QRegExp>
|
||||
|
@ -23,8 +23,6 @@
|
||||
#include <QAbstractListModel>
|
||||
#include <QModelIndex>
|
||||
#include <QProgressDialog>
|
||||
#include <QGeoLocation>
|
||||
#include <QGeoCoordinate>
|
||||
#include <QTableWidgetItem>
|
||||
#include <QPushButton>
|
||||
#include <QToolButton>
|
||||
|
@ -43,7 +43,6 @@ struct PacketDemodSettings
|
||||
quint32 m_rgbColor;
|
||||
QString m_title;
|
||||
Serializable *m_channelMarker;
|
||||
QString m_audioDeviceName;
|
||||
int m_streamIndex; //!< MIMO channel. Not relevant when connected to SI (single Rx).
|
||||
bool m_useReverseAPI;
|
||||
QString m_reverseAPIAddress;
|
||||
|
@ -55,6 +55,9 @@ PacketDemodSink::PacketDemodSink(PacketDemod *packetDemod) :
|
||||
|
||||
PacketDemodSink::~PacketDemodSink()
|
||||
{
|
||||
delete[] m_f1;
|
||||
delete[] m_f0;
|
||||
delete[] m_corrBuf;
|
||||
}
|
||||
|
||||
void PacketDemodSink::feed(const SampleVector::const_iterator& begin, const SampleVector::const_iterator& end)
|
||||
@ -301,9 +304,9 @@ void PacketDemodSink::applySettings(const PacketDemodSettings& settings, bool fo
|
||||
|
||||
if (force)
|
||||
{
|
||||
delete m_f1;
|
||||
delete m_f0;
|
||||
delete m_corrBuf;
|
||||
delete[] m_f1;
|
||||
delete[] m_f0;
|
||||
delete[] m_corrBuf;
|
||||
m_correlationLength = PACKETDEMOD_CHANNEL_SAMPLE_RATE/settings.m_baud;
|
||||
m_f1 = new Complex[m_correlationLength]();
|
||||
m_f0 = new Complex[m_correlationLength]();
|
||||
|
@ -64,7 +64,7 @@ UDP port number to forward received packets to.
|
||||
|
||||
<h3>Received Packets Table</h3>
|
||||
|
||||
The received packets table displays the contexts of the packets that have been received. Only packets with valid CRCs are displayed.
|
||||
The received packets table displays the contents of the packets that have been received. Only packets with valid CRCs are displayed.
|
||||
|
||||
* From - The source address / callsign of the sender of the packet.
|
||||
* To - The destination address.
|
||||
|
@ -53,7 +53,7 @@ IEEE_802_15_4_ModSource::IEEE_802_15_4_ModSource() :
|
||||
|
||||
IEEE_802_15_4_ModSource::~IEEE_802_15_4_ModSource()
|
||||
{
|
||||
delete m_sinLUT;
|
||||
delete[] m_sinLUT;
|
||||
}
|
||||
|
||||
void IEEE_802_15_4_ModSource::pull(SampleVector::iterator begin, unsigned int nbSamples)
|
||||
@ -406,8 +406,7 @@ void IEEE_802_15_4_ModSource::createHalfSine(int sampleRate, int chipRate)
|
||||
int samplesPerChip = sampleRate / chipRate;
|
||||
double tc = 1.0 / chipRate;
|
||||
|
||||
if (m_sinLUT)
|
||||
delete m_sinLUT;
|
||||
delete[] m_sinLUT;
|
||||
m_sinLUT = new double[2*samplesPerChip];
|
||||
for (int i = 0; i < 2*samplesPerChip; i++)
|
||||
{
|
||||
|
@ -47,13 +47,13 @@ DVBS::~DVBS()
|
||||
{
|
||||
// Free interleaver FIFO memory
|
||||
for (int i = 1; i < interleaveDepth; i++)
|
||||
delete m_interleaveFIFO[i];
|
||||
delete m_interleaveIdx;
|
||||
delete m_interleaveLen;
|
||||
delete m_interleaveFIFO;
|
||||
delete[] m_interleaveFIFO[i];
|
||||
delete[] m_interleaveIdx;
|
||||
delete[] m_interleaveLen;
|
||||
delete[] m_interleaveFIFO;
|
||||
|
||||
// Free packet buffer
|
||||
delete m_packet;
|
||||
delete[] m_packet;
|
||||
}
|
||||
|
||||
// Scramble input packet (except for sync bytes) with psuedo random binary sequence
|
||||
|
@ -479,6 +479,8 @@ void getSatelliteState(QDateTime dateTime,
|
||||
noOfPasses);
|
||||
}
|
||||
|
||||
qDeleteAll(satState->m_groundTrack);
|
||||
qDeleteAll(satState->m_predictedGroundTrack);
|
||||
getGroundTrack(dateTime, tle0, tle1, tle2, groundTrackSteps, false, satState->m_groundTrack);
|
||||
getGroundTrack(dateTime, tle0, tle1, tle2, groundTrackSteps, true, satState->m_predictedGroundTrack);
|
||||
}
|
||||
|
@ -848,6 +848,8 @@ void StarTrackerGUI::plotSkyTemperatureChart()
|
||||
|
||||
// Scale marker size by beamwidth
|
||||
markerSize = std::max((int)round(beamWidth * degPerPixel), 5);
|
||||
|
||||
delete[] beam;
|
||||
}
|
||||
else
|
||||
qDebug() << "StarTrackerGUI::plotSkyTemperatureChart: FITS temperature file not valid";
|
||||
|
Loading…
Reference in New Issue
Block a user