kopia lustrzana https://github.com/f4exb/sdrangel
Plugins: cppcheck corrections
rodzic
9cb1a774c6
commit
324aaa86b6
|
@ -15,9 +15,10 @@
|
|||
// along with this program. If not, see <http://www.gnu.org/licenses/>. //
|
||||
///////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#include "../../channelrx/demodbfm/rdsdecoder.h"
|
||||
#include "rdsdecoder.h"
|
||||
|
||||
#include <QDebug>
|
||||
#include <string.h>
|
||||
|
||||
const unsigned int RDSDecoder::offset_pos[5] = {0,1,2,3,2};
|
||||
const unsigned int RDSDecoder::offset_word[5] = {252,408,360,436,848};
|
||||
|
@ -41,6 +42,7 @@ RDSDecoder::RDSDecoder()
|
|||
m_wrongBlocksCounter = 0;
|
||||
m_goodBlock = false;
|
||||
m_qua = 0.0f;
|
||||
memset(m_group, 0, 4*sizeof(int));
|
||||
}
|
||||
|
||||
RDSDecoder::~RDSDecoder()
|
||||
|
|
|
@ -15,7 +15,8 @@
|
|||
// along with this program. If not, see <http://www.gnu.org/licenses/>. //
|
||||
///////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#include "../../channelrx/demodbfm/rdsparser.h"
|
||||
#include "rdsparser.h"
|
||||
#include "rdstmc.h"
|
||||
|
||||
#include <QDebug>
|
||||
#include <string.h>
|
||||
|
@ -25,7 +26,6 @@
|
|||
#include <cstring>
|
||||
#include "boost/format.hpp"
|
||||
|
||||
#include "../../channelrx/demodbfm/rdstmc.h"
|
||||
|
||||
const unsigned int RDSParser::offset_pos[5] = {0,1,2,3,2};
|
||||
const unsigned int RDSParser::offset_word[5] = {252,408,360,436,848};
|
||||
|
@ -743,7 +743,7 @@ void RDSParser::decode_type3(unsigned int *group, bool B)
|
|||
qDebug() << "RDSParser::decode_type3: aid group: " << application_group
|
||||
<< " " << (group_type ? 'B' : 'A');*/
|
||||
|
||||
if ((application_group == 8) && (group_type == false))
|
||||
if ((application_group == 8) && (group_type == 0))
|
||||
{ // 8A
|
||||
int variant_code = (message >> 14) & 0x3;
|
||||
|
||||
|
|
|
@ -50,6 +50,8 @@ void ATVModSettings::resetToDefaults()
|
|||
m_overlayText = "ATV";
|
||||
m_rgbColor = QColor(255, 255, 255).rgb();
|
||||
m_title = "ATV Modulator";
|
||||
m_udpAddress = "127.0.0.1";
|
||||
m_udpPort = 9999;
|
||||
}
|
||||
|
||||
QByteArray ATVModSettings::serialize() const
|
||||
|
|
|
@ -386,7 +386,7 @@ bool UDPSink::handleMessage(const Message& cmd)
|
|||
{
|
||||
m_actualInputSampleRate = newSampleRate;
|
||||
|
||||
if ((cfg.getRawDeltaRatio() > -0.05) || (cfg.getRawDeltaRatio() < 0.05))
|
||||
if ((cfg.getRawDeltaRatio() > -0.05) && (cfg.getRawDeltaRatio() < 0.05))
|
||||
{
|
||||
if (m_sampleRateAvgCounter < m_sampleRateAverageItems)
|
||||
{
|
||||
|
|
|
@ -33,6 +33,7 @@ void UDPSinkSettings::resetToDefaults()
|
|||
m_outputSampleRate = 48000;
|
||||
m_sampleFormat = FormatS16LE;
|
||||
m_inputSampleRate = 48000;
|
||||
m_basebandSampleRate = 48000;
|
||||
m_inputFrequencyOffset = 0;
|
||||
m_rfBandwidth = 12500;
|
||||
m_fmDeviation = 2500;
|
||||
|
|
|
@ -34,6 +34,7 @@ void PlutoSDROutputSettings::resetToDefaults()
|
|||
m_lpfFIREnable = false;
|
||||
m_lpfFIRBW = 500000U;
|
||||
m_lpfFIRlog2Interp = 0;
|
||||
m_lpfFIRGain = 0;
|
||||
m_att = -50;
|
||||
m_antennaPath = RFPATH_A;
|
||||
m_transverterMode = false;
|
||||
|
|
|
@ -30,6 +30,7 @@ void FCDProPlusSettings::resetToDefaults()
|
|||
m_lnaGain = true;
|
||||
m_biasT = false;
|
||||
m_ifGain = 0;
|
||||
m_mixGain = 0;
|
||||
m_rfFilterIndex = 0;
|
||||
m_ifFilterIndex = 0;
|
||||
m_LOppmTenths = 0;
|
||||
|
|
|
@ -38,6 +38,7 @@ void PlutoSDRInputSettings::resetToDefaults()
|
|||
m_lpfFIREnable = false;
|
||||
m_lpfFIRBW = 500000U;
|
||||
m_lpfFIRlog2Decim = 0;
|
||||
m_lpfFIRGain = 0;
|
||||
m_gain = 40;
|
||||
m_antennaPath = RFPATH_A_BAL;
|
||||
m_gainMode = GAIN_MANUAL;
|
||||
|
|
Ładowanie…
Reference in New Issue