From 4241f013769ae80ca74ab078d45871adc79a9f9d Mon Sep 17 00:00:00 2001 From: Daniele Forsi Date: Wed, 10 Jul 2024 22:59:13 +0200 Subject: [PATCH] Fix typos in cpp files --- app/main.cpp | 6 ++-- appsrv/main.cpp | 2 +- devices/usrp/deviceusrpparam.cpp | 2 +- ft8/ft8.cpp | 6 ++-- ft8/packing.cpp | 2 +- httpserver/httpconnectionhandler.cpp | 2 +- httpserver/httplistener.cpp | 4 +-- httpserver/httprequest.cpp | 4 +-- modemm17/M17Demodulator.cpp | 2 +- modemm17/M17Modulator.cpp | 2 +- .../channelrx/demodadsb/adsbdemodbaseband.cpp | 2 +- plugins/channelrx/demodadsb/adsbdemodgui.cpp | 30 +++++++++---------- .../demodadsb/adsbdemodnotificationdialog.cpp | 2 +- plugins/channelrx/demodadsb/adsbdemodsink.cpp | 2 +- .../demodadsb/adsbdemodsinkworker.cpp | 4 +-- plugins/channelrx/demodais/aisdemodsink.cpp | 4 +-- plugins/channelrx/demodapt/aptdemodgui.cpp | 2 +- .../demodapt/aptdemodimageworker.cpp | 6 ++-- plugins/channelrx/demodatv/atvdemodsink.cpp | 2 +- plugins/channelrx/demodbfm/rdsdecoder.cpp | 2 +- plugins/channelrx/demoddsc/dscdemodsink.cpp | 2 +- .../demodendoftrain/endoftraindemodsink.cpp | 2 +- .../channelrx/demodnavtex/navtexdemodsink.cpp | 2 +- .../channelrx/demodpager/pagerdemodsink.cpp | 4 +-- .../demodradiosonde/radiosondedemodsink.cpp | 6 ++-- plugins/channelrx/demodrtty/rttydemodsink.cpp | 2 +- plugins/channelrx/demodvor/vordemodgui.cpp | 2 +- .../channelrx/demodvormc/vordemodmcgui.cpp | 2 +- .../channelrx/demodvormc/vordemodmcsink.cpp | 2 +- plugins/channelrx/heatmap/heatmapgui.cpp | 2 +- .../radioastronomy/radioastronomygui.cpp | 18 +++++------ .../channelrx/radioclock/radioclocksink.cpp | 4 +-- plugins/channeltx/moddatv/datvmodgui.cpp | 2 +- plugins/channeltx/moddatv/dvb-s/dvb-s.cpp | 4 +-- plugins/channeltx/moddatv/dvb-s2/DVB2.cpp | 6 ++-- plugins/channeltx/moddatv/dvb-s2/DVBS2.cpp | 6 ++-- plugins/channeltx/moddatv/dvb-s2/dvb2_bch.cpp | 2 +- plugins/channeltx/modm17/m17modprocessor.cpp | 2 +- plugins/channeltx/modpacket/packetmodgui.cpp | 2 +- plugins/feature/ambe/ambeengine.cpp | 2 +- .../feature/gs232controller/dfmprotocol.cpp | 2 +- .../gs232controller/gs232controllergui.cpp | 4 +-- plugins/feature/limerfe/limerfe.cpp | 4 +-- plugins/feature/map/mapibpbeacondialog.cpp | 2 +- plugins/feature/radiosonde/radiosondegui.cpp | 2 +- .../rigctlserver/rigctlserverworker.cpp | 4 +-- .../satellitetracker/satellitetrackergui.cpp | 2 +- .../satellitetrackersettingsdialog.cpp | 2 +- .../satellitetracker/satellitetrackersgp4.cpp | 6 ++-- .../satellitetrackerworker.cpp | 2 +- plugins/feature/sid/sidaddchannelsdialog.cpp | 2 +- plugins/feature/sid/sidgui.cpp | 6 ++-- plugins/feature/skymap/skymapgui.cpp | 4 +-- plugins/feature/startracker/startracker.cpp | 4 +-- .../feature/startracker/startrackergui.cpp | 2 +- .../feature/vorlocalizer/vorlocalizergui.cpp | 2 +- .../vorlocalizer/vorlocalizerworker.cpp | 4 +-- .../aaroniartsainputworker.cpp | 2 +- plugins/samplesource/fcdpro/fcdproinput.cpp | 2 +- .../fcdproplus/fcdproplusinput.cpp | 2 +- .../remoteinput/remoteinputbuffer.cpp | 2 +- .../remotetcpinputtcphandler.cpp | 2 +- plugins/samplesource/rtlsdr/rtlsdrgui.cpp | 2 +- plugins/samplesource/rtlsdr/rtlsdrinput.cpp | 2 +- qrtplib/rtpsources.cpp | 2 +- sdrbase/audio/audiocompressor.cpp | 2 +- sdrbase/audio/audiocompressorsnd.cpp | 2 +- sdrbase/audio/audiooutputdevice.cpp | 2 +- sdrbase/device/deviceenumerator.cpp | 2 +- sdrbase/dsp/fmpreemphasis.cpp | 2 +- sdrbase/dsp/morsedemod.cpp | 2 +- sdrbase/dsp/projector.cpp | 8 ++--- sdrbase/dsp/spectrumvis.cpp | 4 +-- sdrbase/dsp/vkfftengine.cpp | 2 +- sdrbase/util/ais.cpp | 2 +- sdrbase/util/aprs.cpp | 2 +- sdrbase/util/astronomy.cpp | 12 ++++---- sdrbase/util/dsc.cpp | 2 +- sdrbase/util/httpdownloadmanager.cpp | 2 +- sdrbase/webapi/webapiutils.cpp | 8 ++--- sdrbench/test_callsign.cpp | 4 +-- sdrbench/test_ft8protocols.cpp | 4 +-- sdrgui/gui/glscopegui.cpp | 2 +- sdrgui/gui/glshaderspectrogram.cpp | 2 +- sdrgui/gui/glspectrumview.cpp | 8 ++--- sdrgui/gui/rollupcontents.cpp | 2 +- sdrsrv/mainserver.cpp | 2 +- wdsp/make_interface.cpp | 2 +- 88 files changed, 156 insertions(+), 156 deletions(-) diff --git a/app/main.cpp b/app/main.cpp index 5d66a1eea..4421a4478 100644 --- a/app/main.cpp +++ b/app/main.cpp @@ -148,7 +148,7 @@ static int runQtApplication(int argc, char* argv[], qtwebapp::LoggerWithFile *lo #endif #ifdef ANDROID - // Default sized sliders can be hard to move using touch GUIs, so increase szie + // Default sized sliders can be hard to move using touch GUIs, so increase size // FIXME: How can we do a double border around the handle, as Fusion style seems to use? // Dialog borders are hard to see as is (perhaps as Android doesn't have a title bar), so use same color as for MDI qApp->setStyleSheet("QSlider {min-height: 20px; } " @@ -189,7 +189,7 @@ static int runQtApplication(int argc, char* argv[], qtwebapp::LoggerWithFile *lo { // Disable log on console, so we can more easily see device list logger->setConsoleMinMessageLevel(QtFatalMsg); - // Don't pass logger to MainWindow, otherwise it can reenable log output + // Don't pass logger to MainWindow, otherwise it can re-enable log output logger = nullptr; } @@ -217,7 +217,7 @@ int main(int argc, char* argv[]) // Request OpenGL 3.3 context, needed for glspectrum and 3D Map feature // Note that Mac only supports CoreProfile, so any deprecated OpenGL 2 features // will not work. Because of this, we have two versions of the shaders: - // OpenGL 2 versions for compatiblity with older drivers and OpenGL 3.3 + // OpenGL 2 versions for compatibility with older drivers and OpenGL 3.3 // versions for newer drivers #if (QT_VERSION < QT_VERSION_CHECK(6, 0, 0)) QGLFormat fmt; diff --git a/appsrv/main.cpp b/appsrv/main.cpp index ef2950011..849f4f76e 100644 --- a/appsrv/main.cpp +++ b/appsrv/main.cpp @@ -100,7 +100,7 @@ static int runQtApplication(int argc, char* argv[], qtwebapp::LoggerWithFile *lo { // Disable log on console, so we can more easily see device list logger->setConsoleMinMessageLevel(QtFatalMsg); - // Don't pass logger to MainServer, otherwise it can reenable log output + // Don't pass logger to MainServer, otherwise it can re-enable log output logger = nullptr; } diff --git a/devices/usrp/deviceusrpparam.cpp b/devices/usrp/deviceusrpparam.cpp index f4e344a75..c8c2f875a 100644 --- a/devices/usrp/deviceusrpparam.cpp +++ b/devices/usrp/deviceusrpparam.cpp @@ -40,7 +40,7 @@ bool DeviceUSRPParams::open(const QString &deviceStr, bool channelNumOnly) qDebug() << "DeviceUSRPParams::open: m_nbRxChannels: " << m_nbRxChannels << " m_nbTxChannels: " << m_nbTxChannels; // Speed up program initialisation, by not getting all properties - // If we could find out number of channles without ::make ing the device + // If we could find out number of channels without ::make ing the device // that would be even better if (!channelNumOnly) { diff --git a/ft8/ft8.cpp b/ft8/ft8.cpp index a3c6a8397..d0b96478b 100644 --- a/ft8/ft8.cpp +++ b/ft8/ft8.cpp @@ -652,7 +652,7 @@ void FT8::go(int npasses) // in fractions of bins in off and hz. // - // just do this once, re-use for every fractional fft_shift + // just do this once, reuse for every fractional fft_shift // and down_v7_f() to 200 sps. std::vector> bins = fftEngine_->one_fft( samples_, 0, samples_.size()); @@ -2273,7 +2273,7 @@ std::vector FT8::extract_bits(const std::vector &syms, const std::ve return bits; } -// decode successive pairs of symbols. exploits the likelyhood +// decode successive pairs of symbols. exploits the likelihood // that they have the same phase, by summing the complex // correlations for each possible pair and using the max. void FT8::soft_decode_pairs( @@ -2573,7 +2573,7 @@ void FT8::soft_decode_triples( } // -// given log likelyhood for each bit, try LDPC and OSD decoders. +// given log likelihood for each bit, try LDPC and OSD decoders. // on success, puts corrected 174 bits into a174[]. // int FT8::decode(const float ll174[], int a174[], FT8Params& _params, int use_osd, std::string &comment) diff --git a/ft8/packing.cpp b/ft8/packing.cpp index 84585792e..30f5ea783 100644 --- a/ft8/packing.cpp +++ b/ft8/packing.cpp @@ -388,7 +388,7 @@ std::string Packing::unpack_5(int a77[], std::string& call1str, std::string& cal hashes_mu.unlock(); call2str = std::string(ocall); - // mext bit is alway for R + // mext bit is always for R int i = 12+ 22 +1; // r3 int rst = un64(a77, i, 3); diff --git a/httpserver/httpconnectionhandler.cpp b/httpserver/httpconnectionhandler.cpp index d4c852dd5..272458010 100644 --- a/httpserver/httpconnectionhandler.cpp +++ b/httpserver/httpconnectionhandler.cpp @@ -249,7 +249,7 @@ void HttpConnectionHandler::read() } // In case of HTTP 1.0 protocol add the Connection:close header. - // This ensures that the HttpResponse does not activate chunked mode, which is not spported by HTTP 1.0. + // This ensures that the HttpResponse does not activate chunked mode, which is not supported by HTTP 1.0. else { bool http1_0=QString::compare(currentRequest->getVersion(),"HTTP/1.0",Qt::CaseInsensitive)==0; diff --git a/httpserver/httplistener.cpp b/httpserver/httplistener.cpp index ac06011b2..25ba539b0 100644 --- a/httpserver/httplistener.cpp +++ b/httpserver/httplistener.cpp @@ -19,7 +19,7 @@ HttpListener::HttpListener(QSettings* settings, HttpRequestHandler* requestHandl pool = 0; this->settings = settings; this->requestHandler = requestHandler; - // Reqister type of socketDescriptor for signal/slot handling + // Register type of socketDescriptor for signal/slot handling qRegisterMetaType("tSocketDescriptor"); // Start listening listen(); @@ -33,7 +33,7 @@ HttpListener::HttpListener(const HttpListenerSettings& settings, HttpRequestHand this->settings = 0; listenerSettings = settings; this->requestHandler = requestHandler; - // Reqister type of socketDescriptor for signal/slot handling + // Register type of socketDescriptor for signal/slot handling qRegisterMetaType("tSocketDescriptor"); // Start listening listen(); diff --git a/httpserver/httprequest.cpp b/httpserver/httprequest.cpp index 856f4f008..3c8181423 100644 --- a/httpserver/httprequest.cpp +++ b/httpserver/httprequest.cpp @@ -425,7 +425,7 @@ void HttpRequest::parseMultiPartFile() while (!tempFile->atEnd() && !finished && !tempFile->error()) { #ifdef SUPERVERBOSE - qDebug("HttpRequest::parseMultiPartFile: reading multpart headers"); + qDebug("HttpRequest::parseMultiPartFile: reading multipart headers"); #endif QByteArray fieldName; QByteArray fileName; @@ -464,7 +464,7 @@ void HttpRequest::parseMultiPartFile() } #ifdef SUPERVERBOSE - qDebug("HttpRequest::parseMultiPartFile: reading multpart data"); + qDebug("HttpRequest::parseMultiPartFile: reading multipart data"); #endif QTemporaryFile* uploadedFile=0; QByteArray fieldValue; diff --git a/modemm17/M17Demodulator.cpp b/modemm17/M17Demodulator.cpp index 138907ad7..c81aa0f53 100644 --- a/modemm17/M17Demodulator.cpp +++ b/modemm17/M17Demodulator.cpp @@ -38,7 +38,7 @@ namespace modemm17 { // 0.001661182944400927, 0.002699564567597445, 0.0031468394550958484, 0.0029364388513841593, 0.0 // }; -// Generated using scikit-commpy N = 150, aplha = 0.5, Ts = 1/4800 s, Fs = 48000 Hz +// Generated using scikit-commpy N = 150, alpha = 0.5, Ts = 1/4800 s, Fs = 48000 Hz const std::array M17Demodulator::rrc_taps = std::array{ -8.434122e-04, +3.898184e-04, +1.628891e-03, +2.576674e-03, +2.987740e-03, +2.729505e-03, +1.820181e-03, +4.333001e-04, -1.134215e-03, -2.525029e-03, diff --git a/modemm17/M17Modulator.cpp b/modemm17/M17Modulator.cpp index 032e35841..65f36e599 100644 --- a/modemm17/M17Modulator.cpp +++ b/modemm17/M17Modulator.cpp @@ -50,7 +50,7 @@ const std::array M17Modulator::EOT_SYNC = {0x55, 0x5D}; // ? // 0.001661182944400927, 0.002699564567597445, 0.0031468394550958484, 0.0029364388513841593, 0.0 // 150 // }; -// Generated using scikit-commpy N = 150, aplha = 0.5, Ts = 1/4800 s, Fs = 48000 Hz +// Generated using scikit-commpy N = 150, alpha = 0.5, Ts = 1/4800 s, Fs = 48000 Hz /* import sys import commpy.filters diff --git a/plugins/channelrx/demodadsb/adsbdemodbaseband.cpp b/plugins/channelrx/demodadsb/adsbdemodbaseband.cpp index b3b8229d7..0db76f974 100644 --- a/plugins/channelrx/demodadsb/adsbdemodbaseband.cpp +++ b/plugins/channelrx/demodadsb/adsbdemodbaseband.cpp @@ -126,7 +126,7 @@ bool ADSBDemodBaseband::handleMessage(const Message& cmd) QMutexLocker mutexLocker(&m_mutex); DSPSignalNotification& notif = (DSPSignalNotification&) cmd; qDebug() << "ADSBDemodBaseband::handleMessage: DSPSignalNotification: basebandSampleRate: " << notif.getSampleRate(); - m_sampleFifo.setSize(SampleSinkFifo::getSizePolicy(8*notif.getSampleRate())); // Need a large FIFO otherwise we get overflows - revist after better upsampling + m_sampleFifo.setSize(SampleSinkFifo::getSizePolicy(8*notif.getSampleRate())); // Need a large FIFO otherwise we get overflows - revisit after better upsampling m_channelizer->setBasebandSampleRate(notif.getSampleRate()); m_sink.applyChannelSettings(m_channelizer->getChannelSampleRate(), m_channelizer->getChannelFrequencyOffset()); diff --git a/plugins/channelrx/demodadsb/adsbdemodgui.cpp b/plugins/channelrx/demodadsb/adsbdemodgui.cpp index 9b1a4308f..342e8f5c8 100644 --- a/plugins/channelrx/demodadsb/adsbdemodgui.cpp +++ b/plugins/channelrx/demodadsb/adsbdemodgui.cpp @@ -1231,7 +1231,7 @@ void ADSBDemodGUI::callsignToFlight(Aircraft *aircraft) if (!aircraft->m_callsign.isEmpty()) { QRegularExpression flightNoExp("^[A-Z]{2,3}[0-9]{1,4}$"); - // Airlines line BA add a single charater suffix that can be stripped + // Airlines line BA add a single character suffix that can be stripped // If the suffix is two characters, then it typically means a digit // has been replaced which I don't know how to guess // E.g Easyjet might use callsign EZY67JQ for flight EZY6267 @@ -1424,7 +1424,7 @@ void ADSBDemodGUI::handleADSB( if (wasOnSurface != aircraft->m_onSurface) { - // Can't mix CPR values used on surface and those that are airbourne + // Can't mix CPR values used on surface and those that are airborne aircraft->m_cprValid[0] = false; aircraft->m_cprValid[1] = false; } @@ -1516,7 +1516,7 @@ void ADSBDemodGUI::handleADSB( } else if (((tc >= 9) && (tc <= 18)) || ((tc >= 20) && (tc <= 22))) { - // Airbourne position (9-18 baro, 20-22 GNSS) + // Airborne position (9-18 baro, 20-22 GNSS) int alt = ((data[5] & 0xff) << 4) | ((data[6] >> 4) & 0xf); // Altitude int q = (alt & 0x10) != 0; int n = ((alt >> 1) & 0x7f0) | (alt & 0xf); // Remove Q-bit @@ -1631,9 +1631,9 @@ void ADSBDemodGUI::handleADSB( else { // Local decode using a single aircraft position + location of receiver - // Only valid if airbourne within 180nm/333km (C.2.6.4) or 45nm for surface + // Only valid if airborne within 180nm/333km (C.2.6.4) or 45nm for surface - // Caclulate latitude + // Calculate latitude const double maxDeg = aircraft->m_onSurface ? 90.0 : 360.0; const double dLatEven = maxDeg/60.0; const double dLatOdd = maxDeg/59.0; @@ -1643,7 +1643,7 @@ void ADSBDemodGUI::handleADSB( int j = std::floor(m_azEl.getLocationSpherical().m_latitude/dLat) + std::floor(modulus(m_azEl.getLocationSpherical().m_latitude, dLat)/dLat - aircraft->m_cprLat[f] + 0.5); latitude = dLat * (j + aircraft->m_cprLat[f]); - // Caclulate longitude + // Calculate longitude double dLong; int latNL = cprNL(latitude); if (f == 0) @@ -1678,7 +1678,7 @@ void ADSBDemodGUI::handleADSB( } else if (tc == 19) { - // Airbourne velocity - BDS 0,9 + // Airborne velocity - BDS 0,9 int st = data[4] & 0x7; // Subtype if ((st == 1) || (st == 2)) { @@ -1874,7 +1874,7 @@ void ADSBDemodGUI::handleADSB( if (resetAnimation) { - // Wait until after model has changed before reseting + // Wait until after model has changed before resetting // otherwise animation might play on old model aircraft->m_gearDown = false; aircraft->m_flaps = 0.0; @@ -1924,7 +1924,7 @@ void ADSBDemodGUI::decodeModeS(const QByteArray data, int df, Aircraft *aircraft } if (wasOnSurface != aircraft->m_onSurface) { - // Can't mix CPR values used on surface and those that are airbourne + // Can't mix CPR values used on surface and those that are airborne aircraft->m_cprValid[0] = false; aircraft->m_cprValid[1] = false; } @@ -1985,7 +1985,7 @@ void ADSBDemodGUI::decodeModeS(const QByteArray data, int df, Aircraft *aircraft void ADSBDemodGUI::decodeCommB(const QByteArray data, const QDateTime dateTime, int df, Aircraft *aircraft, bool &updatedCallsign) { - // We only see downlink messages, so do not know the data format, so have to decode all posibilities + // We only see downlink messages, so do not know the data format, so have to decode all possibilities // and then see which have legal values and values that are consistent with ADS-B data // All IFR aircraft should support ELS (Elementary Surveillance) which includes BDS 1,0 1,7 2,0 3,0 @@ -2247,7 +2247,7 @@ void ADSBDemodGUI::decodeCommB(const QByteArray data, const QDateTime dateTime, int windSpeedFix = ((data[4] & 0x7) << 6) | ((data[5] >> 2) & 0x3f); int windSpeed = windSpeedFix; // knots int windDirectionFix = ((data[5] & 0x3) << 6) | ((data[6] >> 2) & 0x3f); - int windDirection = windDirectionFix * 180.0f / 256.0f; // Degreees + int windDirection = windDirectionFix * 180.0f / 256.0f; // Degrees bool windSpeedInconsistent = (windSpeed > 250.0f) || (!windSpeedStatus && ((windSpeedFix != 0) || (windDirectionFix != 0))); int staticAirTemperatureFix = ((data[6] & 0x1) << 10) | ((data[7] & 0xff) << 2) | ((data[8] >> 6) & 0x3); @@ -2884,7 +2884,7 @@ QList * ADSBDemodGUI::animate(QDateTime dateTime bool debug = false; // Landing gear should be down when on surface - // Check speed in case we get a mixture of surface and airbourne positions + // Check speed in case we get a mixture of surface and airborne positions // during take-off if ( aircraft->m_onSurface && !aircraft->m_gearDown @@ -3591,7 +3591,7 @@ void ADSBDemodGUI::on_flightInfo_clicked() } } -// Find highlighed aircraft on Map Feature +// Find highlighted aircraft on Map Feature void ADSBDemodGUI::on_findOnMapFeature_clicked() { QModelIndexList indexList = ui->adsbData->selectionModel()->selectedRows(); @@ -3972,7 +3972,7 @@ void ADSBDemodGUI::updateChannelList() ui->amDemod->blockSignals(false); - // If no current settting, select first channel + // If no current setting, select first channel if (m_settings.m_amDemod.isEmpty()) { ui->amDemod->setCurrentIndex(0); @@ -5564,7 +5564,7 @@ void ADSBDemodGUI::on_logOpen_clicked() crc.calculate((const uint8_t *)bytes.data(), bytes.size()-3); crcCalc = crc.get(); } - //qDebug() << "bytes.szie " << bytes.size() << " crc " << Qt::hex << crcCalc; + //qDebug() << "bytes.size " << bytes.size() << " crc " << Qt::hex << crcCalc; handleADSB(bytes, dateTime, correlation, correlation, crcCalc, false); if ((count > 0) && (count % 100000 == 0)) { diff --git a/plugins/channelrx/demodadsb/adsbdemodnotificationdialog.cpp b/plugins/channelrx/demodadsb/adsbdemodnotificationdialog.cpp index 99845f293..d5a1c31c6 100644 --- a/plugins/channelrx/demodadsb/adsbdemodnotificationdialog.cpp +++ b/plugins/channelrx/demodadsb/adsbdemodnotificationdialog.cpp @@ -23,7 +23,7 @@ #include "adsbdemodnotificationdialog.h" -// Map main ADS-B table column numbers to combo box indicies +// Map main ADS-B table column numbers to combo box indices std::vector ADSBDemodNotificationDialog::m_columnMap = { ADSB_COL_ICAO, ADSB_COL_CALLSIGN, ADSB_COL_MODEL, ADSB_COL_ALTITUDE, ADSB_COL_GROUND_SPEED, ADSB_COL_RANGE, diff --git a/plugins/channelrx/demodadsb/adsbdemodsink.cpp b/plugins/channelrx/demodadsb/adsbdemodsink.cpp index 6079c45a1..eeeaa15ab 100644 --- a/plugins/channelrx/demodadsb/adsbdemodsink.cpp +++ b/plugins/channelrx/demodadsb/adsbdemodsink.cpp @@ -175,7 +175,7 @@ void ADSBDemodSink::stopWorker() } m_worker.wait(); // If this is called from ADSBDemod, we need to also - // make sure baseband sink thread isnt blocked in processOneSample + // make sure baseband sink thread isn't blocked in processOneSample for (int i = 0; i < m_buffers; i++) { if (m_bufferWrite[i].available() == 0) diff --git a/plugins/channelrx/demodadsb/adsbdemodsinkworker.cpp b/plugins/channelrx/demodadsb/adsbdemodsinkworker.cpp index b08e13ab6..4a6060a76 100644 --- a/plugins/channelrx/demodadsb/adsbdemodsinkworker.cpp +++ b/plugins/channelrx/demodadsb/adsbdemodsinkworker.cpp @@ -127,7 +127,7 @@ void ADSBDemodSinkWorker::run() // (E.g: it's quite possible to receive multiple frames simultaneously, so we don't // want a maximum threshold for the zeros, as a weaker signal may transmit 1s in // a stronger signals 0 chip position. Similarly a strong signal in an adjacent - // channel may casue AGC to reduce gain, reducing the ampltiude of an otherwise + // channel may cause AGC to reduce gain, reducing the ampltiude of an otherwise // strong signal, as well as the noise floor) // The threshold accounts for the different number of zeros and ones in the preamble // If the sum of ones is exactly 0, it's probably no signal @@ -253,7 +253,7 @@ void ADSBDemodSinkWorker::run() crc ^= icao; } } - // For DF11, the last 7 bits may have an address/interogration indentifier (II) + // For DF11, the last 7 bits may have an address/interogration identifier (II) // XORed in, so we ignore those bits if ((parity == crc) || ((df == 11) && ((parity & 0xffff80) == (crc & 0xffff80)))) { diff --git a/plugins/channelrx/demodais/aisdemodsink.cpp b/plugins/channelrx/demodais/aisdemodsink.cpp index 19bfd735d..a961201be 100644 --- a/plugins/channelrx/demodais/aisdemodsink.cpp +++ b/plugins/channelrx/demodais/aisdemodsink.cpp @@ -349,7 +349,7 @@ void AISDemodSink::processOneSample(Complex &ci) // Select signals to feed to scope sampleToScope(ci / SDR_RX_SCALEF, magsq, fmDemod, filt, m_rxBuf[m_rxBufIdx], corr / 100.0, thresholdMet, dcOffset, scopeCRCValid ? 1.0 : (scopeCRCInvalid ? -1.0 : 0)); - // Send demod signal to Demod Analzyer feature + // Send demod signal to Demod Analyzer feature m_demodBuffer[m_demodBufferFill++] = fmDemod * std::numeric_limits::max(); if (m_demodBufferFill >= m_demodBuffer.size()) @@ -422,7 +422,7 @@ void AISDemodSink::applySettings(const AISDemodSettings& settings, bool force) qDebug() << "AISDemodSink::applySettings: m_samplesPerSymbol: " << m_samplesPerSymbol << " baud " << settings.m_baud; m_pulseShape.create(0.5, 3, m_samplesPerSymbol); - // Recieve buffer, long enough for one max length message + // Receive buffer, long enough for one max length message delete[] m_rxBuf; m_rxBufLength = AISDEMOD_MAX_BYTES*8*m_samplesPerSymbol; m_rxBuf = new Real[m_rxBufLength]; diff --git a/plugins/channelrx/demodapt/aptdemodgui.cpp b/plugins/channelrx/demodapt/aptdemodgui.cpp index 079600216..c018ae69c 100644 --- a/plugins/channelrx/demodapt/aptdemodgui.cpp +++ b/plugins/channelrx/demodapt/aptdemodgui.cpp @@ -202,7 +202,7 @@ bool APTDemodGUI::handleMessage(const Message& message) } else { - m_image = m_image.copy(0, 0, m_image.width(), m_image.height()+1); // Add a line at tne bottom + m_image = m_image.copy(0, 0, m_image.width(), m_image.height()+1); // Add a line at the bottom if (m_settings.m_flip) { diff --git a/plugins/channelrx/demodapt/aptdemodimageworker.cpp b/plugins/channelrx/demodapt/aptdemodimageworker.cpp index 1b22c662d..ee5a29fbe 100644 --- a/plugins/channelrx/demodapt/aptdemodimageworker.cpp +++ b/plugins/channelrx/demodapt/aptdemodimageworker.cpp @@ -314,7 +314,7 @@ void APTDemodImageWorker::calcPixelCoords(CoordGeodetic centreCoord, double head } } -// Recalculate all pixel coordiantes as satTimeOffset or satYaw has changed +// Recalculate all pixel coordinates as satTimeOffset or satYaw has changed void APTDemodImageWorker::recalcCoords() { if (m_sgp4) @@ -381,7 +381,7 @@ void APTDemodImageWorker::calcCoord(int row) QStringList elements = m_settings.m_tle.trimmed().split("\n"); if (elements.size() == 3) { - // Initalise SGP4 + // Initialise SGP4 Tle tle(elements[0].toStdString(), elements[1].toStdString(), elements[2].toStdString()); m_sgp4 = new SGP4(tle); @@ -559,7 +559,7 @@ void APTDemodImageWorker::calcBoundingBox(double &east, double &south, double &w //fclose(f); } -// Project satellite image to equidistant cyclindrical projection (Plate Carree) for use on 3D Map +// Project satellite image to equidistant cylindrical projection (Plate Carree) for use on 3D Map // We've previously computed lat and lon for each pixel in satellite image // so we just work through coords in projected image, trying to find closest pixel in satellite image // FIXME: How do we handle sat going over the poles? diff --git a/plugins/channelrx/demodatv/atvdemodsink.cpp b/plugins/channelrx/demodatv/atvdemodsink.cpp index 1763b72e4..faf36930f 100644 --- a/plugins/channelrx/demodatv/atvdemodsink.cpp +++ b/plugins/channelrx/demodatv/atvdemodsink.cpp @@ -121,7 +121,7 @@ void ATVDemodSink::demod(Complex& c) int n_out; Complex *filtered; - n_out = m_DSBFilter->runAsym(c, &filtered, m_settings.m_atvModulation != ATVDemodSettings::ATV_LSB); // all usb except explicitely lsb + n_out = m_DSBFilter->runAsym(c, &filtered, m_settings.m_atvModulation != ATVDemodSettings::ATV_LSB); // all usb except explicitly lsb if (n_out > 0) { diff --git a/plugins/channelrx/demodbfm/rdsdecoder.cpp b/plugins/channelrx/demodbfm/rdsdecoder.cpp index 601fee0ae..5a3d285db 100644 --- a/plugins/channelrx/demodbfm/rdsdecoder.cpp +++ b/plugins/channelrx/demodbfm/rdsdecoder.cpp @@ -215,7 +215,7 @@ bool RDSDecoder::frameSync(bool bit) return group_ready; } -////////////////////////// HELPER FUNTIONS ///////////////////////// +////////////////////////// HELPER FUNCTIONS ///////////////////////// void RDSDecoder::enter_sync(unsigned int sync_block_number) { diff --git a/plugins/channelrx/demoddsc/dscdemodsink.cpp b/plugins/channelrx/demoddsc/dscdemodsink.cpp index 23687f1d3..88ac70b0a 100644 --- a/plugins/channelrx/demoddsc/dscdemodsink.cpp +++ b/plugins/channelrx/demoddsc/dscdemodsink.cpp @@ -163,7 +163,7 @@ void DSCDemodSink::processOneSample(Complex &ci) // Save current data for edge detection m_dataPrev = m_data; - // Set data according to stongest correlation + // Set data according to strongest correlation m_data = biasedData > 0; // Calculate timing error (we expect clockCount to be 0 when data changes), and add a proportion of it diff --git a/plugins/channelrx/demodendoftrain/endoftraindemodsink.cpp b/plugins/channelrx/demodendoftrain/endoftraindemodsink.cpp index d950a574a..079ff6b10 100644 --- a/plugins/channelrx/demodendoftrain/endoftraindemodsink.cpp +++ b/plugins/channelrx/demodendoftrain/endoftraindemodsink.cpp @@ -259,7 +259,7 @@ void EndOfTrainDemodSink::processOneSample(Complex &ci) // Select signals to feed to scope sampleToScope(ci / SDR_RX_SCALEF, magsq, fmDemod, f0Filt, f1Filt, diff, sample, bit, m_gotSOP); - // Send demod signal to Demod Analzyer feature + // Send demod signal to Demod Analyzer feature m_demodBuffer[m_demodBufferFill++] = fmDemod * std::numeric_limits::max(); if (m_demodBufferFill >= m_demodBuffer.size()) diff --git a/plugins/channelrx/demodnavtex/navtexdemodsink.cpp b/plugins/channelrx/demodnavtex/navtexdemodsink.cpp index ba91b870e..f10c8e6ab 100644 --- a/plugins/channelrx/demodnavtex/navtexdemodsink.cpp +++ b/plugins/channelrx/demodnavtex/navtexdemodsink.cpp @@ -161,7 +161,7 @@ void NavtexDemodSink::processOneSample(Complex &ci) // Save current data for edge detection m_dataPrev = m_data; - // Set data according to stongest correlation + // Set data according to strongest correlation m_data = biasedData < 0; // Generate sampling clock by aligning to correlator zero-crossing diff --git a/plugins/channelrx/demodpager/pagerdemodsink.cpp b/plugins/channelrx/demodpager/pagerdemodsink.cpp index cc6918fba..71cb3a62e 100644 --- a/plugins/channelrx/demodpager/pagerdemodsink.cpp +++ b/plugins/channelrx/demodpager/pagerdemodsink.cpp @@ -156,7 +156,7 @@ quint32 PagerDemodSink::bchEncode(const quint32 cw) } // Use BCH decoding to try to fix any bit errors -// Returns true if able to be decode/repair successfull +// Returns true if able to be decode/repair successful // See: https://www.eevblog.com/forum/microcontrollers/practical-guides-to-bch-fec/ bool PagerDemodSink::bchDecode(const quint32 cw, quint32& correctedCW) { @@ -585,7 +585,7 @@ void PagerDemodSink::processOneSample(Complex &ci) sampleToScope(scopeSample); - // Send demod signal to Demod Analzyer feature + // Send demod signal to Demod Analyzer feature m_demodBuffer[m_demodBufferFill++] = fmDemod * std::numeric_limits::max(); if (m_demodBufferFill >= m_demodBuffer.size()) diff --git a/plugins/channelrx/demodradiosonde/radiosondedemodsink.cpp b/plugins/channelrx/demodradiosonde/radiosondedemodsink.cpp index 8c709c1fa..a7d5cd0ff 100644 --- a/plugins/channelrx/demodradiosonde/radiosondedemodsink.cpp +++ b/plugins/channelrx/demodradiosonde/radiosondedemodsink.cpp @@ -274,7 +274,7 @@ void RadiosondeDemodSink::processOneSample(Complex &ci) } if (sampleIdx >= 16 * 8 * m_samplesPerSymbol) { - // Too many bits without receving header + // Too many bits without receiving header break; } } @@ -359,7 +359,7 @@ void RadiosondeDemodSink::processOneSample(Complex &ci) } sampleToScope(scopeSample); - // Send demod signal to Demod Analzyer feature + // Send demod signal to Demod Analyzer feature m_demodBuffer[m_demodBufferFill++] = fmDemod * std::numeric_limits::max(); if (m_demodBufferFill >= m_demodBuffer.size()) @@ -550,7 +550,7 @@ void RadiosondeDemodSink::applySettings(const RadiosondeDemodSettings& settings, // What value to use for BT? RFIC is Si4032 - its datasheet only appears to support 0.5 m_pulseShape.create(0.5, 3, m_samplesPerSymbol); - // Recieve buffer, long enough for one max length message + // Receive buffer, long enough for one max length message delete[] m_rxBuf; m_rxBufLength = RADIOSONDEDEMOD_MAX_BYTES*8*m_samplesPerSymbol; m_rxBuf = new Real[m_rxBufLength]; diff --git a/plugins/channelrx/demodrtty/rttydemodsink.cpp b/plugins/channelrx/demodrtty/rttydemodsink.cpp index 0130afd19..f0864bcde 100644 --- a/plugins/channelrx/demodrtty/rttydemodsink.cpp +++ b/plugins/channelrx/demodrtty/rttydemodsink.cpp @@ -219,7 +219,7 @@ void RttyDemodSink::processOneSample(Complex &ci) // Save current data for edge detection m_dataPrev = m_data; - // Set data according to stongest correlation + // Set data according to strongest correlation if (m_settings.m_spaceHigh) { m_data = m_settings.m_atc ? biasedData < 0 : unbiasedData < 0; } else { diff --git a/plugins/channelrx/demodvor/vordemodgui.cpp b/plugins/channelrx/demodvor/vordemodgui.cpp index 4de437e5b..e6bbb5841 100644 --- a/plugins/channelrx/demodvor/vordemodgui.cpp +++ b/plugins/channelrx/demodvor/vordemodgui.cpp @@ -143,7 +143,7 @@ bool VORDemodGUI::handleMessage(const Message& message) ui->morseText->setText(Morse::toSpacedUnicode(ident)); // Idents should only be two or three characters, so filter anything else - // other than TEST which indicates a VOR is under maintainance (may also be TST) + // other than TEST which indicates a VOR is under maintenance (may also be TST) if (((identString.size() >= 2) && (identString.size() <= 3)) || (identString == "TEST")) { ui->identText->setStyleSheet("QLabel { color: white }"); diff --git a/plugins/channelrx/demodvormc/vordemodmcgui.cpp b/plugins/channelrx/demodvormc/vordemodmcgui.cpp index 7d91478b8..93a126c3f 100644 --- a/plugins/channelrx/demodvormc/vordemodmcgui.cpp +++ b/plugins/channelrx/demodvormc/vordemodmcgui.cpp @@ -835,7 +835,7 @@ bool VORDemodMCGUI::handleMessage(const Message& message) // Convert Morse to a string QString identString = Morse::toString(ident); // Idents should only be two or three characters, so filter anything else - // other than TEST which indicates a VOR is under maintainance (may also be TST) + // other than TEST which indicates a VOR is under maintenance (may also be TST) if (((identString.size() >= 2) && (identString.size() <= 3)) || (identString == "TEST")) { vorGUI->m_rxIdentItem->setText(identString); diff --git a/plugins/channelrx/demodvormc/vordemodmcsink.cpp b/plugins/channelrx/demodvormc/vordemodmcsink.cpp index f7debaf10..dc9be4af7 100644 --- a/plugins/channelrx/demodvormc/vordemodmcsink.cpp +++ b/plugins/channelrx/demodvormc/vordemodmcsink.cpp @@ -269,7 +269,7 @@ void VORDemodMCSink::processOneSample(Complex &ci) m_movingAverageIdent(c2.real()); Real mav = m_movingAverageIdent.asFloat(); - // Caclulate noise floor + // Calculate noise floor if (mav > m_identMaxs[m_binCnt]) m_identMaxs[m_binCnt] = mav; m_binSampleCnt++; diff --git a/plugins/channelrx/heatmap/heatmapgui.cpp b/plugins/channelrx/heatmap/heatmapgui.cpp index 1cef5d381..d18b3a9de 100644 --- a/plugins/channelrx/heatmap/heatmapgui.cpp +++ b/plugins/channelrx/heatmap/heatmapgui.cpp @@ -1426,7 +1426,7 @@ void HeatMapGUI::resizeMap(int x, int y) } catch (std::bad_alloc&) { - // Detete partially allocated memory + // Delete partially allocated memory delete[] powerAverage; delete[] powerPulseAverage; delete[] powerMaxPeak; diff --git a/plugins/channelrx/radioastronomy/radioastronomygui.cpp b/plugins/channelrx/radioastronomy/radioastronomygui.cpp index e5c9f1f28..185bfd384 100644 --- a/plugins/channelrx/radioastronomy/radioastronomygui.cpp +++ b/plugins/channelrx/radioastronomy/radioastronomygui.cpp @@ -920,7 +920,7 @@ bool RadioAstronomyGUI::deserialize(const QByteArray& data) void RadioAstronomyGUI::updateAvailableFeatures(const AvailableChannelOrFeatureList& availableFeatures, const QStringList& renameFrom, const QStringList& renameTo) { - // Update starTracker settting if it has been renamed + // Update starTracker setting if it has been renamed if (renameFrom.contains(m_settings.m_starTracker)) { m_settings.m_starTracker = renameTo[renameFrom.indexOf(m_settings.m_starTracker)]; @@ -1446,7 +1446,7 @@ void RadioAstronomyGUI::calcCalTrx() } } -// Estimate spillover temperature (This is typically very Az/El depenedent as ground noise will vary) +// Estimate spillover temperature (This is typically very Az/El dependent as ground noise will vary) void RadioAstronomyGUI::calcCalTsp() { if (!ui->calTrx->text().isEmpty() && !ui->calTsky->text().isEmpty() && !ui->calYFactor->text().isEmpty()) @@ -2610,7 +2610,7 @@ void RadioAstronomyGUI::tick() void RadioAstronomyGUI::updateRotatorList(const AvailableChannelOrFeatureList& rotators, const QStringList& renameFrom, const QStringList& renameTo) { - // Update rotator settting if it has been renamed + // Update rotator setting if it has been renamed if (renameFrom.contains(m_settings.m_rotator)) { m_settings.m_rotator = renameTo[renameFrom.indexOf(m_settings.m_rotator)]; @@ -2983,7 +2983,7 @@ void RadioAstronomyGUI::updateSpectrumChartWidgetsVisibility() getRollupContents()->arrangeRollups(); } -// Calulate mean, RMS and standard deviation +// Calculate mean, RMS and standard deviation // Currently this is for all data - but could make it only for visible data void RadioAstronomyGUI::calcAverages() { @@ -4091,7 +4091,7 @@ static double lineDopplerVelocity(double centre, double f) return Astronomy::dopplerToVelocity(f, centre) / 1000.0f; } -// Convert frequency shift to velocity (+ve receeding - which seems to be the astronomical convention) +// Convert frequency shift to velocity (+ve receding - which seems to be the astronomical convention) double RadioAstronomyGUI::dopplerToVelocity(double centre, double f, FFTMeasurement *fft) { double v = lineDopplerVelocity(centre, f); @@ -4107,7 +4107,7 @@ double RadioAstronomyGUI::dopplerToVelocity(double centre, double f, FFTMeasurem default: break; } - // Make +ve receeding + // Make +ve receding return -v; } @@ -4645,7 +4645,7 @@ void RadioAstronomyGUI::calcFFTTotalTemperature(FFTMeasurement* fft) fft->m_totalPowerdBm = Astronomy::noisePowerdBm(tempSum, bw); fft->m_tSys = tempSum/fft->m_fftSize; - // Esimate source temperature + // Estimate source temperature fft->m_tSource = calcTSource(fft); // Calculate error due to thermal noise and gain variation @@ -5473,7 +5473,7 @@ void RadioAstronomyGUI::on_spectrumShowLAB_toggled(bool checked) applySettings(); m_fftLABSeries->setVisible(m_settings.m_spectrumLAB); if (m_settings.m_spectrumLAB) { - plotLAB(); // Replot incase data needs to be downloaded + plotLAB(); // Replot in case data needs to be downloaded } spectrumAutoscale(); } @@ -6094,7 +6094,7 @@ void RadioAstronomyGUI::downloadFinished(const QString& filename, bool success) } else { - // Try ploting for current FFT (as we only allow one download at a time, so may have been skipped) + // Try plotting for current FFT (as we only allow one download at a time, so may have been skipped) m_downloadingLAB = false; plotLAB(fft->m_l, fft->m_b, m_beamWidth); // Don't clear m_downloadingLAB after this point diff --git a/plugins/channelrx/radioclock/radioclocksink.cpp b/plugins/channelrx/radioclock/radioclocksink.cpp index d937bde16..5b449c43b 100644 --- a/plugins/channelrx/radioclock/radioclocksink.cpp +++ b/plugins/channelrx/radioclock/radioclocksink.cpp @@ -636,7 +636,7 @@ void RadioClockSink::wwvb() m_threshold = m_thresholdMovingAverage.asDouble() * m_linearThreshold; // xdB below average m_data = m_magsq > m_threshold; - // Look for minute marker - two consequtive markers + // Look for minute marker - two consecutive markers if ((m_data == 0) && (m_prevData == 1)) { if ( (m_highCount <= RadioClockSettings::RADIOCLOCK_CHANNEL_SAMPLE_RATE * 0.3) @@ -803,7 +803,7 @@ void RadioClockSink::jjy() m_threshold = m_thresholdMovingAverage.asDouble() * m_linearThreshold; // xdB below average m_data = m_magsq > m_threshold; - // Look for minute marker - two consequtive markers + // Look for minute marker - two consecutive markers if ((m_data == 1) && (m_prevData == 0)) { if ( (m_highCount <= RadioClockSettings::RADIOCLOCK_CHANNEL_SAMPLE_RATE * 0.3) diff --git a/plugins/channeltx/moddatv/datvmodgui.cpp b/plugins/channeltx/moddatv/datvmodgui.cpp index 6190f4938..035be57a9 100644 --- a/plugins/channeltx/moddatv/datvmodgui.cpp +++ b/plugins/channeltx/moddatv/datvmodgui.cpp @@ -625,7 +625,7 @@ void DATVModGUI::tick() m_channelPowerDbAvg(powDb); ui->channelPower->setText(tr("%1 dB").arg(m_channelPowerDbAvg.asDouble(), 0, 'f', 1)); - // Use m_tickMsgOutstanding to prevent queuing lots of messsages while stopped/paused + // Use m_tickMsgOutstanding to prevent queuing lots of messages while stopped/paused if (((++m_tickCount & 0xf) == 0) && !m_tickMsgOutstanding) { if (ui->inputSelect->currentIndex() == (int) DATVModSettings::SourceFile) diff --git a/plugins/channeltx/moddatv/dvb-s/dvb-s.cpp b/plugins/channeltx/moddatv/dvb-s/dvb-s.cpp index 640d27e57..813b5ee3b 100644 --- a/plugins/channeltx/moddatv/dvb-s/dvb-s.cpp +++ b/plugins/channeltx/moddatv/dvb-s/dvb-s.cpp @@ -56,8 +56,8 @@ DVBS::~DVBS() delete[] m_packet; } -// Scramble input packet (except for sync bytes) with psuedo random binary sequence -// Initiliase PRBS sequence every 8 packets and invert sync byte +// Scramble input packet (except for sync bytes) with pseudo random binary sequence +// Initialise PRBS sequence every 8 packets and invert sync byte void DVBS::scramble(const uint8_t *packetIn, uint8_t *packetOut) { if (m_prbsPacketCount == 0) diff --git a/plugins/channeltx/moddatv/dvb-s2/DVB2.cpp b/plugins/channeltx/moddatv/dvb-s2/DVB2.cpp index beabedda6..bf12f2a3e 100644 --- a/plugins/channeltx/moddatv/dvb-s2/DVB2.cpp +++ b/plugins/channeltx/moddatv/dvb-s2/DVB2.cpp @@ -44,7 +44,7 @@ int DVB2::set_configure( DVB2FrameFormat *f ) if( f->broadcasting ) { - // Set standard parametrs for broadcasting + // Set standard parameters for broadcasting f->frame_type = FRAME_NORMAL; f->bb_header.ts_gs = TS_GS_TRANSPORT; f->bb_header.sis_mis = SIS_MIS_SINGLE; @@ -200,7 +200,7 @@ int DVB2::set_configure( DVB2FrameFormat *f ) f->kldpc = f->kbch + bch_bits; // Number of padding bits required (not used) f->padding_bits = 0; - // Number of useable data bits (not used) + // Number of usable data bits (not used) f->useable_data_bits = f->kbch - 80; // Save the configuration, will be updated on next frame m_format[1] = *f; @@ -278,7 +278,7 @@ DVB2::DVB2(void) init_bb_randomiser(); bch_poly_build_tables(); build_crc8_table(); - m_dnp = 0;// No delted null packets + m_dnp = 0;// No deleted null packets m_frame_offset_bits = 0; m_params_changed = 1; } diff --git a/plugins/channeltx/moddatv/dvb-s2/DVBS2.cpp b/plugins/channeltx/moddatv/dvb-s2/DVBS2.cpp index 9d0ec765e..b1b94f0d1 100644 --- a/plugins/channeltx/moddatv/dvb-s2/DVBS2.cpp +++ b/plugins/channeltx/moddatv/dvb-s2/DVBS2.cpp @@ -105,15 +105,15 @@ void DVBS2::calc_efficiency( void ) a = a*m; // Take into account pilot symbols // TBD - // Now calculate the useable data as percentage of the frame + // Now calculate the usable data as percentage of the frame b = ((double)m_format[1].useable_data_bits)/p; // Now calculate the efficiency by multiplying the - // useable bits efficiency by the modulation efficiency + // usable bits efficiency by the modulation efficiency m_efficiency = b*a; } // // Multiply the efficiency value by the symbol rate -// to get the useable bitrate +// to get the usable bitrate // double DVBS2::s2_get_efficiency( void ) { diff --git a/plugins/channeltx/moddatv/dvb-s2/dvb2_bch.cpp b/plugins/channeltx/moddatv/dvb-s2/dvb2_bch.cpp index 4be67b6f5..92edbbff6 100644 --- a/plugins/channeltx/moddatv/dvb-s2/dvb2_bch.cpp +++ b/plugins/channeltx/moddatv/dvb-s2/dvb2_bch.cpp @@ -419,6 +419,6 @@ void DVB2::bch_poly_build_tables( void ) } // display_poly( polyout[0], len );//12 -// display_poly_pack( m_poly_s_12, 168 );// Wont work because of shift register length +// display_poly_pack( m_poly_s_12, 168 );// Won't work because of shift register length */ } diff --git a/plugins/channeltx/modm17/m17modprocessor.cpp b/plugins/channeltx/modm17/m17modprocessor.cpp index 79da4e6b5..96e1dae3a 100644 --- a/plugins/channeltx/modm17/m17modprocessor.cpp +++ b/plugins/channeltx/modm17/m17modprocessor.cpp @@ -333,7 +333,7 @@ QString M17ModProcessor::formatAPRSPosition() int latDeg, latMin, latFrac, latNorth; int longDeg, longMin, longFrac, longEast; - // Convert decimal latitude to degrees, min and hundreths of a minute + // Convert decimal latitude to degrees, min and hundredths of a minute latNorth = latitude >= 0.0f; latitude = abs(latitude); latDeg = (int) latitude; diff --git a/plugins/channeltx/modpacket/packetmodgui.cpp b/plugins/channeltx/modpacket/packetmodgui.cpp index 6db20b8df..15fbc27d3 100644 --- a/plugins/channeltx/modpacket/packetmodgui.cpp +++ b/plugins/channeltx/modpacket/packetmodgui.cpp @@ -235,7 +235,7 @@ void PacketModGUI::on_insertPosition_clicked() char latBuf[40]; char longBuf[40]; - // Convert decimal latitude to degrees, min and hundreths of a minute + // Convert decimal latitude to degrees, min and hundredths of a minute latNorth = latitude >= 0.0f; latitude = abs(latitude); latDeg = (int)latitude; diff --git a/plugins/feature/ambe/ambeengine.cpp b/plugins/feature/ambe/ambeengine.cpp index b81854ba7..8f0211b85 100644 --- a/plugins/feature/ambe/ambeengine.cpp +++ b/plugins/feature/ambe/ambeengine.cpp @@ -152,7 +152,7 @@ void AMBEEngine::register_comport( //std::cerr << "register_comport: dir: "<< dir << " driver: " << driver << std::endl; std::string devfile = std::string("/dev/") + basename((char *) dir.c_str()); - // Put serial8250-devices in a seperate list + // Put serial8250-devices in a separate list if (driver == "serial8250") { comList8250.push_back(devfile); } else { diff --git a/plugins/feature/gs232controller/dfmprotocol.cpp b/plugins/feature/gs232controller/dfmprotocol.cpp index 497bbd601..7476d3879 100644 --- a/plugins/feature/gs232controller/dfmprotocol.cpp +++ b/plugins/feature/gs232controller/dfmprotocol.cpp @@ -172,7 +172,7 @@ void DFMProtocol::parseLCUResponse(const QString& packet) float el = aa.alt; reportAzEl(az, el); - // If this is the second LCU packet, we send a commmand + // If this is the second LCU packet, we send a command m_packetCnt++; if (m_packetCnt == 2) { diff --git a/plugins/feature/gs232controller/gs232controllergui.cpp b/plugins/feature/gs232controller/gs232controllergui.cpp index 2f1eb4410..5b8c544be 100644 --- a/plugins/feature/gs232controller/gs232controllergui.cpp +++ b/plugins/feature/gs232controller/gs232controllergui.cpp @@ -540,7 +540,7 @@ void GS232ControllerGUI::updateSerialPortList(const QStringList& serialPorts) void GS232ControllerGUI::updatePipeList(const AvailableChannelOrFeatureList& sources, const QStringList& renameFrom, const QStringList& renameTo) { - // Update source settting if it has been renamed + // Update source setting if it has been renamed if (renameFrom.contains(m_settings.m_source)) { m_settings.m_source = renameTo[renameFrom.indexOf(m_settings.m_source)]; @@ -576,7 +576,7 @@ void GS232ControllerGUI::updatePipeList(const AvailableChannelOrFeatureList& sou ui->sources->blockSignals(false); - // If no current settting, select first available + // If no current setting, select first available if (m_settings.m_source.isEmpty() && (ui->sources->count() > 0)) { ui->sources->setCurrentIndex(0); diff --git a/plugins/feature/limerfe/limerfe.cpp b/plugins/feature/limerfe/limerfe.cpp index 3815eec1d..93d49ad7c 100644 --- a/plugins/feature/limerfe/limerfe.cpp +++ b/plugins/feature/limerfe/limerfe.cpp @@ -44,8 +44,8 @@ const std::map LimeRFE::m_errorCodesMap = { {-3, "Non-configurable GPIO pin specified. Only pins 4 and 5 are configurable."}, {-2, "Problem with .ini configuration file"}, {-1, "Communication error"}, - { 1, "Wrong TX connector - not possible to route TX of the selecrted channel to the specified port"}, - { 2, "Wrong RX connector - not possible to route RX of the selecrted channel to the specified port"}, + { 1, "Wrong TX connector - not possible to route TX of the selected channel to the specified port"}, + { 2, "Wrong RX connector - not possible to route RX of the selected channel to the specified port"}, { 3, "Mode TXRX not allowed - when the same port is selected for RX and TX, it is not allowed to use mode RX & TX"}, { 4, "Wrong mode for cellular channel - Cellular FDD bands (1, 2, 3, and 7) are only allowed mode RX & TX, while TDD band 38 is allowed only RX or TX mode"}, { 5, "Cellular channels must be the same both for RX and TX"}, diff --git a/plugins/feature/map/mapibpbeacondialog.cpp b/plugins/feature/map/mapibpbeacondialog.cpp index 01bc0d9cd..ed3ae947e 100644 --- a/plugins/feature/map/mapibpbeacondialog.cpp +++ b/plugins/feature/map/mapibpbeacondialog.cpp @@ -70,7 +70,7 @@ void MapIBPBeaconDialog::updateTable(QTime time) { AzEl azEl = *m_gui->getAzEl(); - // Repeat from begining every 3 minutes + // Repeat from beginning every 3 minutes int index = ((time.minute() * 60 + time.second()) % 180) / IBPBeacon::m_period; for (int row = 0; row < IBPBeacon::m_frequencies.size(); row++) diff --git a/plugins/feature/radiosonde/radiosondegui.cpp b/plugins/feature/radiosonde/radiosondegui.cpp index 5cd6a9a43..c8c1169a4 100644 --- a/plugins/feature/radiosonde/radiosondegui.cpp +++ b/plugins/feature/radiosonde/radiosondegui.cpp @@ -158,7 +158,7 @@ RadiosondeGUI::RadiosondeGUI(PluginAPI* pluginAPI, FeatureUISet *featureUISet, F m_sondeHub = SondeHub::create(); - // Intialise chart + // Initialise chart ui->chart->setRenderHint(QPainter::Antialiasing); // Resize the table using dummy data diff --git a/plugins/feature/rigctlserver/rigctlserverworker.cpp b/plugins/feature/rigctlserver/rigctlserverworker.cpp index 92ed422a8..d772226b1 100644 --- a/plugins/feature/rigctlserver/rigctlserverworker.cpp +++ b/plugins/feature/rigctlserver/rigctlserverworker.cpp @@ -483,7 +483,7 @@ bool RigCtlServerWorker::getFrequency(double& frequency, rig_errcode_e& rigCtlRC if (WebAPIUtils::getSubObjectDouble(*jsonObj, "centerFrequency", deviceFreq)) { SWGSDRangel::SWGChannelSettings channelSettingsResponse; - // Get channel settings containg inputFrequencyOffset, so we can patch them + // Get channel settings containing inputFrequencyOffset, so we can patch them httpRC = m_webAPIAdapterInterface->devicesetChannelSettingsGet( m_settings.m_deviceIndex, m_settings.m_channelIndex, @@ -683,7 +683,7 @@ bool RigCtlServerWorker::getMode(const char **mode, double& passband, rig_errcod SWGSDRangel::SWGErrorResponse errorResponse; int httpRC; - // Get channel settings containg inputFrequencyOffset, so we can patch them + // Get channel settings containing inputFrequencyOffset, so we can patch them httpRC = m_webAPIAdapterInterface->devicesetChannelSettingsGet( m_settings.m_deviceIndex, m_settings.m_channelIndex, diff --git a/plugins/feature/satellitetracker/satellitetrackergui.cpp b/plugins/feature/satellitetracker/satellitetrackergui.cpp index 807f1d5ed..34d02bdf4 100644 --- a/plugins/feature/satellitetracker/satellitetrackergui.cpp +++ b/plugins/feature/satellitetracker/satellitetrackergui.cpp @@ -305,7 +305,7 @@ SatelliteTrackerGUI::SatelliteTrackerGUI(PluginAPI* pluginAPI, FeatureUISet *fea connect(&m_redrawTimer, &QTimer::timeout, this, &SatelliteTrackerGUI::plotChart); - // Intialise charts + // Initialise charts m_emptyChart.layout()->setContentsMargins(0, 0, 0, 0); m_emptyChart.setMargins(QMargins(1, 1, 1, 1)); ui->passChart->setChart(&m_emptyChart); diff --git a/plugins/feature/satellitetracker/satellitetrackersettingsdialog.cpp b/plugins/feature/satellitetracker/satellitetrackersettingsdialog.cpp index 29ace8179..ba1659fd6 100644 --- a/plugins/feature/satellitetracker/satellitetrackersettingsdialog.cpp +++ b/plugins/feature/satellitetracker/satellitetrackersettingsdialog.cpp @@ -88,7 +88,7 @@ void SatelliteTrackerSettingsDialog::on_removeTle_clicked() void SatelliteTrackerSettingsDialog::on_defaultTles_clicked() { QMessageBox::StandardButton reply; - reply = QMessageBox::question(this, "Confirm ovewrite", "Replace the current TLE list with the default?", QMessageBox::Yes|QMessageBox::No, QMessageBox::No); + reply = QMessageBox::question(this, "Confirm overwrite", "Replace the current TLE list with the default?", QMessageBox::Yes|QMessageBox::No, QMessageBox::No); if (reply == QMessageBox::Yes) { ui->tles->clear(); updateTleWidget(DEFAULT_TLES); diff --git a/plugins/feature/satellitetracker/satellitetrackersgp4.cpp b/plugins/feature/satellitetracker/satellitetrackersgp4.cpp index 2856d3946..c8d650348 100644 --- a/plugins/feature/satellitetracker/satellitetrackersgp4.cpp +++ b/plugins/feature/satellitetracker/satellitetrackersgp4.cpp @@ -176,7 +176,7 @@ void getPassAzEl(QLineSeries* azimuth, QLineSeries* elevation, QLineSeries* pola } } -// Get whether a pass passes through 0 degreees +// Get whether a pass passes through 0 degrees bool getPassesThrough0Deg(const QString& tle0, const QString& tle1, const QString& tle2, double latitude, double longitude, double altitude, QDateTime& aos, QDateTime& los) @@ -321,7 +321,7 @@ static DateTime findCrossingPoint(Observer& obs, SGP4& sgp4, const DateTime& ini return middleTime; } -// Find when AOS occured, by stepping backwards +// Find when AOS occurred, by stepping backwards static DateTime findAOSBackwards(Observer& obs, SGP4& sgp4, DateTime& startTime, int predictionPeriod, double minElevation, bool& aosUnknown) { @@ -366,7 +366,7 @@ bool inPassWindow(DateTime dateTime, QTime passStartTime, QTime passEndTime, boo } // Create a list of satellite passes, between the given start and end times, that exceed the specified minimum elevation -// We return an uninitalised QDateTime if AOS or LOS is outside of predictionPeriod +// We return an uninitialised QDateTime if AOS or LOS is outside of predictionPeriod static QList createPassList(Observer& obs, SGP4& sgp4, DateTime& startTime, int predictionPeriod, double minAOSElevation, double minPassElevationDeg, QTime passStartTime, QTime passEndTime, bool utc, diff --git a/plugins/feature/satellitetracker/satellitetrackerworker.cpp b/plugins/feature/satellitetracker/satellitetrackerworker.cpp index bf03c2a4a..680af0440 100644 --- a/plugins/feature/satellitetracker/satellitetrackerworker.cpp +++ b/plugins/feature/satellitetracker/satellitetrackerworker.cpp @@ -398,7 +398,7 @@ void SatelliteTrackerWorker::update() if (satWorkerState->m_losTimer.isActive()) { qDebug() << "SatelliteTrackerWorker::update m_losTimer.remainingTime: " << satWorkerState->m_losTimer.remainingTime(); } - // We can detect a new AOS for a satellite, a little bit before the LOS has occured + // We can detect a new AOS for a satellite, a little bit before the LOS has occurred // Allow for 5s here (1s doesn't appear to be enough in some cases) if (satWorkerState->m_losTimer.isActive() && (satWorkerState->m_losTimer.remainingTime() <= 5000)) { diff --git a/plugins/feature/sid/sidaddchannelsdialog.cpp b/plugins/feature/sid/sidaddchannelsdialog.cpp index 6e3eb226a..bdd6663fb 100644 --- a/plugins/feature/sid/sidaddchannelsdialog.cpp +++ b/plugins/feature/sid/sidaddchannelsdialog.cpp @@ -149,7 +149,7 @@ void SIDAddChannelsDialog::channelAdded(int deviceSetIndex, ChannelAPI *channel) ChannelWebAPIUtils::patchChannelSetting(channel, "rfBandwidth", 300); ChannelWebAPIUtils::patchChannelSetting(channel, "averagePeriodUS", 10000000); - // Update setings if they are created by SIDGUI before this slot is called + // Update settings if they are created by SIDGUI before this slot is called if (m_count < m_settings->m_channelSettings.size()) { m_settings->m_channelSettings[m_count].m_label = transmitter->m_callsign; } diff --git a/plugins/feature/sid/sidgui.cpp b/plugins/feature/sid/sidgui.cpp index eb49eeb13..6c7c0d581 100644 --- a/plugins/feature/sid/sidgui.cpp +++ b/plugins/feature/sid/sidgui.cpp @@ -184,7 +184,7 @@ SIDGUI::SIDGUI(PluginAPI* pluginAPI, FeatureUISet *featureUISet, Feature *featur ui->startDateTime->blockSignals(false); ui->endDateTime->blockSignals(false); - // Intialise chart + // Initialise chart ui->chart->setRenderHint(QPainter::Antialiasing); ui->xRayChart->setRenderHint(QPainter::Antialiasing); @@ -207,7 +207,7 @@ SIDGUI::SIDGUI(PluginAPI* pluginAPI, FeatureUISet *featureUISet, Feature *featur applyAllSettings(); m_resizer.enableChildMouseTracking(); - // Intialisation for Solar Dynamics Observatory image/video display + // Initialisation for Solar Dynamics Observatory image/video display ui->sdoEnabled->setChecked(true); ui->sdoProgressBar->setVisible(false); ui->sdoImage->setStyleSheet("background-color: black;"); @@ -236,7 +236,7 @@ SIDGUI::SIDGUI(PluginAPI* pluginAPI, FeatureUISet *featureUISet, Feature *featur m_settings.m_sdoData = ui->sdoData->currentText(); } - // Intialisation for GOES X-Ray data + // Initialisation for GOES X-Ray data m_goesXRay = GOESXRay::create(); if (m_goesXRay) { diff --git a/plugins/feature/skymap/skymapgui.cpp b/plugins/feature/skymap/skymapgui.cpp index 52b02bd23..f81472316 100644 --- a/plugins/feature/skymap/skymapgui.cpp +++ b/plugins/feature/skymap/skymapgui.cpp @@ -1054,7 +1054,7 @@ void SkyMapGUI::updateSourceList(const QStringList& renameFrom, const QStringLis { m_availableChannelOrFeatures = m_availableChannelOrFeatureHandler.getAvailableChannelOrFeatureList(); - // Update source settting if it has been renamed + // Update source setting if it has been renamed if (renameFrom.contains(m_settings.m_source)) { m_settings.m_source = renameTo[renameFrom.indexOf(m_settings.m_source)]; @@ -1092,7 +1092,7 @@ void SkyMapGUI::updateSourceList(const QStringList& renameFrom, const QStringLis ui->source->blockSignals(false); - // If no current settting, select first available + // If no current setting, select first available if (m_settings.m_source.isEmpty() && (ui->source->count() > 0)) { ui->source->setCurrentIndex(0); diff --git a/plugins/feature/startracker/startracker.cpp b/plugins/feature/startracker/startracker.cpp index 2f2b258d4..d7a156a27 100644 --- a/plugins/feature/startracker/startracker.cpp +++ b/plugins/feature/startracker/startracker.cpp @@ -680,7 +680,7 @@ double StarTracker::applyBeam(const FITS *fits, double beamwidth, double ra, dou // (Essentially the same as Gaussian of exp(-4*ln(theta^2/beamwidth^2)) // (See a2 in https://arxiv.org/pdf/1812.10084.pdf for Elliptical equivalent)) // We have gain of 0dB (1) at 0 degrees, and -3dB (~0.5) at half-beamwidth degrees - // Find exponent that correponds to -3dB at that angle + // Find exponent that corresponds to -3dB at that angle double minus3dBLinear = pow(10.0, -3.0/10.0); double p = log(minus3dBLinear)/log(cos(Units::degreesToRadians(halfBeamwidth))); // Create an matrix with gain as a function of angle @@ -791,7 +791,7 @@ bool StarTracker::calcSkyTemperature(double frequency, double beamwidth, double // LFmap: https://www.faculty.ece.vt.edu/swe/lwa/memo/lwa0111.pdf double iso408 = 50 * pow(150e6/408e6, 2.75); // Extra-galactic isotropic in reference map at 408MHz double isoT = 50 * pow(150e6/frequency, 2.75); // Extra-galactic isotropic at target frequency - double cmbT = 2.725; // Cosmic microwave backgroud; + double cmbT = 2.725; // Cosmic microwave background; double spectralIndex; const FITS *spectralIndexFITS = getSpectralIndexFITS(); if (spectralIndexFITS && spectralIndexFITS->valid()) diff --git a/plugins/feature/startracker/startrackergui.cpp b/plugins/feature/startracker/startrackergui.cpp index cf3f5f755..da419dfb2 100644 --- a/plugins/feature/startracker/startrackergui.cpp +++ b/plugins/feature/startracker/startrackergui.cpp @@ -361,7 +361,7 @@ StarTrackerGUI::StarTrackerGUI(PluginAPI* pluginAPI, FeatureUISet *featureUISet, ui->galacticLatitude->setText(""); ui->galacticLongitude->setText(""); - // Intialise chart + // Initialise chart m_chart.legend()->hide(); ui->chart->setChart(&m_chart); ui->chart->setRenderHint(QPainter::Antialiasing); diff --git a/plugins/feature/vorlocalizer/vorlocalizergui.cpp b/plugins/feature/vorlocalizer/vorlocalizergui.cpp index 23c8352bb..a1b20aa99 100644 --- a/plugins/feature/vorlocalizer/vorlocalizergui.cpp +++ b/plugins/feature/vorlocalizer/vorlocalizergui.cpp @@ -784,7 +784,7 @@ bool VORLocalizerGUI::handleMessage(const Message& message) // Convert Morse to a string QString identString = Morse::toString(ident); // Idents should only be two or three characters, so filter anything else - // other than TEST which indicates a VOR is under maintainance (may also be TST) + // other than TEST which indicates a VOR is under maintenance (may also be TST) if (((identString.size() >= 2) && (identString.size() <= 3)) || (identString == "TEST")) { diff --git a/plugins/feature/vorlocalizer/vorlocalizerworker.cpp b/plugins/feature/vorlocalizer/vorlocalizerworker.cpp index c1920f82f..f2deb09a3 100644 --- a/plugins/feature/vorlocalizer/vorlocalizerworker.cpp +++ b/plugins/feature/vorlocalizer/vorlocalizerworker.cpp @@ -469,7 +469,7 @@ void VorLocalizerWorker::setChannelShift(int deviceIndex, int channelIndex, doub SWGSDRangel::SWGErrorResponse errorResponse; int httpRC; - // Get channel settings containg inputFrequencyOffset, so we can patch them + // Get channel settings containing inputFrequencyOffset, so we can patch them httpRC = m_webAPIAdapterInterface->devicesetChannelSettingsGet( deviceIndex, channelIndex, @@ -547,7 +547,7 @@ void VorLocalizerWorker::setAudioMute(int vorNavId, bool audioMute) int deviceIndex = m_channelAllocations[vorNavId].m_deviceIndex; int channelIndex = m_channelAllocations[vorNavId].m_channelIndex; - // Get channel settings containg inputFrequencyOffset, so we can patch them + // Get channel settings containing inputFrequencyOffset, so we can patch them httpRC = m_webAPIAdapterInterface->devicesetChannelSettingsGet( deviceIndex, channelIndex, diff --git a/plugins/samplesource/aaroniartsainput/aaroniartsainputworker.cpp b/plugins/samplesource/aaroniartsainput/aaroniartsainputworker.cpp index ce92b3841..3a79d5eaf 100644 --- a/plugins/samplesource/aaroniartsainput/aaroniartsainputworker.cpp +++ b/plugins/samplesource/aaroniartsainput/aaroniartsainputworker.cpp @@ -223,7 +223,7 @@ void AaroniaRTSAInputWorker::onReadyRead() qint64 done = mReply->read(mBuffer.data() + bs, n); mBuffer.resize(bs + done); - // intialize parsing + // initialize parsing int offset = 0; int avail = mBuffer.size(); diff --git a/plugins/samplesource/fcdpro/fcdproinput.cpp b/plugins/samplesource/fcdpro/fcdproinput.cpp index 599acaf3c..6d4e9ca63 100644 --- a/plugins/samplesource/fcdpro/fcdproinput.cpp +++ b/plugins/samplesource/fcdpro/fcdproinput.cpp @@ -523,7 +523,7 @@ void FCDProInput::set_center_freq(double freq) if (fcdAppSetFreq(m_dev, freq) == FCD_MODE_NONE) { - qDebug("No FCD HID found for frquency change"); + qDebug("No FCD HID found for frequency change"); } } diff --git a/plugins/samplesource/fcdproplus/fcdproplusinput.cpp b/plugins/samplesource/fcdproplus/fcdproplusinput.cpp index f6b9a69f5..7ab4119b2 100644 --- a/plugins/samplesource/fcdproplus/fcdproplusinput.cpp +++ b/plugins/samplesource/fcdproplus/fcdproplusinput.cpp @@ -455,7 +455,7 @@ void FCDProPlusInput::set_center_freq(double freq) if (fcdAppSetFreq(m_dev, freq) == FCD_MODE_NONE) { - qDebug("No FCD HID found for frquency change"); + qDebug("No FCD HID found for frequency change"); } } diff --git a/plugins/samplesource/remoteinput/remoteinputbuffer.cpp b/plugins/samplesource/remoteinput/remoteinputbuffer.cpp index 7a696954d..1e147176e 100644 --- a/plugins/samplesource/remoteinput/remoteinputbuffer.cpp +++ b/plugins/samplesource/remoteinput/remoteinputbuffer.cpp @@ -367,7 +367,7 @@ uint8_t *RemoteInputBuffer::readData(int32_t length) m_nbReads++; - // SEGFAULT FIX: arbitratily truncate so that it does not exceed buffer length + // SEGFAULT FIX: arbitrarily truncate so that it does not exceed buffer length if (length > m_framesSize) { length = m_framesSize; } diff --git a/plugins/samplesource/remotetcpinput/remotetcpinputtcphandler.cpp b/plugins/samplesource/remotetcpinput/remotetcpinputtcphandler.cpp index 62236edb4..9eaf92038 100644 --- a/plugins/samplesource/remotetcpinput/remotetcpinputtcphandler.cpp +++ b/plugins/samplesource/remotetcpinput/remotetcpinputtcphandler.cpp @@ -1013,7 +1013,7 @@ void RemoteTCPInputTCPHandler::processSpyServerData(int requiredBytes, bool clea } } -// QTimer::timeout isn't guarenteed to be called on every timeout, so we need to look at the system clock +// QTimer::timeout isn't guaranteed to be called on every timeout, so we need to look at the system clock void RemoteTCPInputTCPHandler::processData() { QMutexLocker mutexLocker(&m_mutex); diff --git a/plugins/samplesource/rtlsdr/rtlsdrgui.cpp b/plugins/samplesource/rtlsdr/rtlsdrgui.cpp index ee9890166..e640ec5e0 100644 --- a/plugins/samplesource/rtlsdr/rtlsdrgui.cpp +++ b/plugins/samplesource/rtlsdr/rtlsdrgui.cpp @@ -74,7 +74,7 @@ RTLSDRGui::RTLSDRGui(DeviceUISet *deviceUISet, QWidget* parent) : displayGains(); rtlsdr_tuner tunerType = m_sampleSource->getTunerType(); - // Disable widgets not relevent for this tuner + // Disable widgets not relevant for this tuner bool offsetTuningEnabled = (tunerType != RTLSDR_TUNER_R820T) && (tunerType != RTLSDR_TUNER_R828D); if (!offsetTuningEnabled) { ui->offsetTuning->setEnabled(false); diff --git a/plugins/samplesource/rtlsdr/rtlsdrinput.cpp b/plugins/samplesource/rtlsdr/rtlsdrinput.cpp index 6edccc2c9..20cf56e01 100644 --- a/plugins/samplesource/rtlsdr/rtlsdrinput.cpp +++ b/plugins/samplesource/rtlsdr/rtlsdrinput.cpp @@ -542,7 +542,7 @@ bool RTLSDRInput::applySettings(const RTLSDRSettings& settings, const QListGetReceiveTime(), 0, &stored)) < 0) { if (!stored) diff --git a/sdrbase/audio/audiocompressor.cpp b/sdrbase/audio/audiocompressor.cpp index cdb7a9284..52e3b560a 100644 --- a/sdrbase/audio/audiocompressor.cpp +++ b/sdrbase/audio/audiocompressor.cpp @@ -167,7 +167,7 @@ int8_t AudioCompressor::ALaw_Encode(int16_t number) * variable will be initialized with 12 instead of 11. In order to make sure that there will be * no number without a 1 bit in the first 12-5 positions, a bias value is added to the number * (in this case 33). So, since there is no special case (numbers who do not have a 1 bit in - * the first 12-5 positions), this makes the algorithm less complex by eliminating some condtions. + * the first 12-5 positions), this makes the algorithm less complex by eliminating some conditions. * * Also in the end all bits are complemented, not just the even ones. */ diff --git a/sdrbase/audio/audiocompressorsnd.cpp b/sdrbase/audio/audiocompressorsnd.cpp index 9ca215ab1..d95893e64 100644 --- a/sdrbase/audio/audiocompressorsnd.cpp +++ b/sdrbase/audio/audiocompressorsnd.cpp @@ -145,7 +145,7 @@ void AudioCompressorSnd::CompressorState::sf_advancecomp( // calculate the adaptive release curve parameters // solve a,b,c,d in `y = a*x^3 + b*x^2 + c*x + d` - // interescting points (0, y1), (1, y2), (2, y3), (3, y4) + // intersecting points (0, y1), (1, y2), (2, y3), (3, y4) float y1 = releasesamples * releasezone1; float y2 = releasesamples * releasezone2; float y3 = releasesamples * releasezone3; diff --git a/sdrbase/audio/audiooutputdevice.cpp b/sdrbase/audio/audiooutputdevice.cpp index b886165fb..c168b1f3c 100644 --- a/sdrbase/audio/audiooutputdevice.cpp +++ b/sdrbase/audio/audiooutputdevice.cpp @@ -556,7 +556,7 @@ qint64 AudioOutputDevice::bytesAvailable() const // when readData is called, that will output silence if (available == 0) { - // Use a small value, so padding is minimized, but not too small, we get underflow again straightaway + // Use a small value, so padding is minimized, but not too small, we get underflow again straight away // Could make this a function of sample rate available = 512; } diff --git a/sdrbase/device/deviceenumerator.cpp b/sdrbase/device/deviceenumerator.cpp index 27097dedf..e18d57879 100644 --- a/sdrbase/device/deviceenumerator.cpp +++ b/sdrbase/device/deviceenumerator.cpp @@ -254,7 +254,7 @@ void DeviceEnumerator::enumerateDevices(std::initializer_list m_identMaxs[m_binCnt]) m_identMaxs[m_binCnt] = mav; m_binSampleCnt++; diff --git a/sdrbase/dsp/projector.cpp b/sdrbase/dsp/projector.cpp index e0845b80f..135d8b6e8 100644 --- a/sdrbase/dsp/projector.cpp +++ b/sdrbase/dsp/projector.cpp @@ -84,14 +84,14 @@ Real Projector::run(const Sample& s) { // calculate phase. Assume phase difference between two sources at half wavelength distance with sources axis as reference (positive side) // cos(theta) = phi / 2*pi*k - Real p = std::atan2((float) s.m_imag, (float) s.m_real); // do not mormalize phi (phi in -pi..+pi) + Real p = std::atan2((float) s.m_imag, (float) s.m_real); // do not normalize phi (phi in -pi..+pi) v = acos(p/M_PI) / M_PI; // normalize theta } break; case ProjectionDOAN: { // calculate phase. Assume phase difference between two sources at half wavelength distance with sources axis as reference (negative source) - Real p = std::atan2((float) s.m_imag, (float) s.m_real); // do not mormalize phi (phi in -pi..+pi) + Real p = std::atan2((float) s.m_imag, (float) s.m_real); // do not normalize phi (phi in -pi..+pi) v = -acos(p/M_PI) / M_PI; // normalize theta } break; @@ -264,14 +264,14 @@ Real Projector::run(const std::complex& s) { // calculate phase. Assume phase difference between two sources at half wavelength distance with sources axis as reference (positive side) // cos(theta) = phi / 2*pi*k - Real p = std::arg(s); // do not mormalize phi (phi in -pi..+pi) + Real p = std::arg(s); // do not normalize phi (phi in -pi..+pi) v = acos(p/M_PI) / M_PI; // normalize theta } break; case ProjectionDOAN: { // calculate phase. Assume phase difference between two sources at half wavelength distance with sources axis as reference (negative source) - Real p = std::arg(s); // do not mormalize phi (phi in -pi..+pi) + Real p = std::arg(s); // do not normalize phi (phi in -pi..+pi) v = -acos(p/M_PI) / M_PI; // normalize theta } break; diff --git a/sdrbase/dsp/spectrumvis.cpp b/sdrbase/dsp/spectrumvis.cpp index 71eff9b82..761d44a5f 100644 --- a/sdrbase/dsp/spectrumvis.cpp +++ b/sdrbase/dsp/spectrumvis.cpp @@ -344,7 +344,7 @@ void SpectrumVis::feed(const ComplexVector::const_iterator& cbegin, const Comple processFFT(positiveOnly); // advance buffer respecting the fft overlap factor - // undefined bahavior if the memory regions overlap, valid code for 50% overlap + // undefined behavior if the memory regions overlap, valid code for 50% overlap std::copy(m_fftBuffer.begin() + m_refillSize, m_fftBuffer.end(), m_fftBuffer.begin()); // start over @@ -398,7 +398,7 @@ void SpectrumVis::feed(const SampleVector::const_iterator& cbegin, const SampleV processFFT(positiveOnly); // advance buffer respecting the fft overlap factor - // undefined bahavior if the memory regions overlap, valid code for 50% overlap + // undefined behavior if the memory regions overlap, valid code for 50% overlap std::copy(m_fftBuffer.begin() + m_refillSize, m_fftBuffer.end(), m_fftBuffer.begin()); // start over diff --git a/sdrbase/dsp/vkfftengine.cpp b/sdrbase/dsp/vkfftengine.cpp index e9c4dc15b..d3f97cfe5 100644 --- a/sdrbase/dsp/vkfftengine.cpp +++ b/sdrbase/dsp/vkfftengine.cpp @@ -63,7 +63,7 @@ void vkFFTEngine::configure(int n, bool inverse) VkFFTResult resFFT; - // Allocate and intialise plan + // Allocate and initialise plan m_currentPlan->m_configuration = new VkFFTConfiguration(); memset(m_currentPlan->m_configuration, 0, sizeof(VkFFTConfiguration)); m_currentPlan->m_app = new VkFFTApplication(); diff --git a/sdrbase/util/ais.cpp b/sdrbase/util/ais.cpp index 1163c1103..3a2f67474 100644 --- a/sdrbase/util/ais.cpp +++ b/sdrbase/util/ais.cpp @@ -264,7 +264,7 @@ QString AISMessage::getString(const QByteArray ba, int byteIdx, int bitsLeft, in } // Remove leading/trailing spaces s = s.trimmed(); - // Remave @s, which indiciate no character + // Remove @s, which indicate no character while (s.endsWith("@")) { s = s.left(s.length() - 1); } diff --git a/sdrbase/util/aprs.cpp b/sdrbase/util/aprs.cpp index 36b954c40..c0dc12d5c 100644 --- a/sdrbase/util/aprs.cpp +++ b/sdrbase/util/aprs.cpp @@ -1121,7 +1121,7 @@ bool APRSPacket::parseMicE(QString& info, int& idx, QString& dest) // Mic-E Data is encoded in ASCII Characters if (inRange(38, 127, charToIntAscii(info, idx)) // 0: Longitude Degrees, 0-360 && inRange(38, 97, charToIntAscii(info, idx+1)) // 1: Longitude Minutes, 0-59 - && inRange(28, 127, charToIntAscii(info, idx+2)) // 2: Longitude Hundreths of a minute, 0-99 + && inRange(28, 127, charToIntAscii(info, idx+2)) // 2: Longitude Hundredths of a minute, 0-99 && inRange(28, 127, charToIntAscii(info, idx+3)) // 3: Speed (tens), 0-800 && inRange(28, 125, charToIntAscii(info, idx+4)) // 4: Speed (ones), 0-9, and Course (hundreds), {0, 100, 200, 300} && inRange(28, 127, charToIntAscii(info, idx+5)) // 5: Course, 0-99 degrees diff --git a/sdrbase/util/astronomy.cpp b/sdrbase/util/astronomy.cpp index 927088b87..b64a69bb4 100644 --- a/sdrbase/util/astronomy.cpp +++ b/sdrbase/util/astronomy.cpp @@ -488,7 +488,7 @@ void Astronomy::sunPosition(AzAlt& aa, RADec& rd, double latitude, double longit double jd = julianDate(dt); double n = (jd - jd_j2000()); // Days since J2000 epoch (including fraction) - double l = 280.461 + 0.9856474 * n; // Mean longitude of the Sun, corrected for the abberation of light + double l = 280.461 + 0.9856474 * n; // Mean longitude of the Sun, corrected for the aberration of light double g = 357.5291 + 0.98560028 * n; // Mean anomaly of the Sun - how far around orbit from perihlion, in degrees l = modulo(l, 360.0); @@ -498,7 +498,7 @@ void Astronomy::sunPosition(AzAlt& aa, RADec& rd, double latitude, double longit double la = l + 1.9148 * sin(gr) + 0.0200 * sin(2.0*gr) + 0.0003 * sin(3.0*gr); // Ecliptic longitude (Ecliptic latitude b set to 0) - // Convert la, b=0, which give the position of the Sun in the ecliptic coordinate sytem, to + // Convert la, b=0, which give the position of the Sun in the ecliptic coordinate system, to // equatorial coordinates double e = 23.4393 - 3.563E-7 * n; // Obliquity of the ecliptic - tilt of Earth's axis of rotation @@ -611,7 +611,7 @@ void Astronomy::moonPosition(AzAlt& aa, RADec& rd, double latitude, double longi double yg = yh; double zg = zh; - // Convert to equatorial cordinates + // Convert to equatorial coordinates double xe = xg; double ye = yg * cos(ecl) - zg * sin(ecl); double ze = yg * sin(ecl) + zg * cos(ecl); @@ -658,7 +658,7 @@ void Astronomy::moonPosition(AzAlt& aa, RADec& rd, double latitude, double longi // See: https://en.wikipedia.org/wiki/Atmospheric_refraction#Calculating_refraction // Alt is in degrees. 90 = Zenith gives a factor of 0. // Pressure in millibars -// Temperature in Celsuis +// Temperature in Celsius // We divide by 60.0 to get a value in degrees (as original formula is in arcminutes) double Astronomy::refractionSaemundsson(double alt, double pressure, double temperature) { @@ -673,7 +673,7 @@ double Astronomy::refractionSaemundsson(double alt, double pressure, double temp // See: https://github.com/Starlink/pal // Alt is in degrees. 90 = Zenith gives a factor of 0. // Pressure in millibars -// Temperature in Celsuis +// Temperature in Celsius // Humdity in % // Frequency in Hertz // Latitude in decimal degrees @@ -801,7 +801,7 @@ double Astronomy::velocityToDoppler(double v, double f0) // Adapted from palRverot double Astronomy::earthRotationVelocity(RADec rd, double latitude, double longitude, QDateTime dt) { - const double earthSpeed = 0.4655; // km/s (Earth's circumference / seconds in one sideral day) + const double earthSpeed = 0.4655; // km/s (Earth's circumference / seconds in one sidereal day) double latRad = Units::degreesToRadians(latitude); double raRad = Units::degreesToRadians(rd.ra * (360.0/24.0)); double decRad = Units::degreesToRadians(rd.dec); diff --git a/sdrbase/util/dsc.cpp b/sdrbase/util/dsc.cpp index 89c3fd4db..827aec5df 100644 --- a/sdrbase/util/dsc.cpp +++ b/sdrbase/util/dsc.cpp @@ -471,7 +471,7 @@ void DSCMessage::decode(const QByteArray& data) } else if (m_formatSpecifier == GEOGRAPHIC_CALL) { - // Address definines a geographic rectangle. We have NW coord + 2 angles + // Address defines a geographic rectangle. We have NW coord + 2 angles QChar azimuthSector = m_address[0]; m_addressLatitude = m_address[1].digitValue() * 10 + m_address[2].digitValue(); // In degrees m_addressLongitude = m_address[3].digitValue() * 100 + m_address[4].digitValue() * 10 + m_address[5].digitValue(); // In degrees diff --git a/sdrbase/util/httpdownloadmanager.cpp b/sdrbase/util/httpdownloadmanager.cpp index fa88b9454..f98da9cd3 100644 --- a/sdrbase/util/httpdownloadmanager.cpp +++ b/sdrbase/util/httpdownloadmanager.cpp @@ -210,7 +210,7 @@ void HttpDownloadManager::downloadFinished(QNetworkReply *reply) else if (writeToFile(filename, data)) { success = true; - qDebug() << "HttpDownloadManager: Download from " << url << " to " << filename << " finshed."; + qDebug() << "HttpDownloadManager: Download from " << url << " to " << filename << " finished."; } } else diff --git a/sdrbase/webapi/webapiutils.cpp b/sdrbase/webapi/webapiutils.cpp index 7873fd125..50d96769e 100644 --- a/sdrbase/webapi/webapiutils.cpp +++ b/sdrbase/webapi/webapiutils.cpp @@ -442,7 +442,7 @@ bool WebAPIUtils::getSubObjectDouble(const QJsonObject &json, const QString &key return false; } -// Set double value withing nested JSON object +// Set double value within nested JSON object bool WebAPIUtils::setSubObjectDouble(QJsonObject &json, const QString &key, double value) { for (QJsonObject::iterator it = json.begin(); it != json.end(); it++) @@ -487,7 +487,7 @@ bool WebAPIUtils::getSubObjectInt(const QJsonObject &json, const QString &key, i return false; } -// Set integer value withing nested JSON object +// Set integer value within nested JSON object bool WebAPIUtils::setSubObjectInt(QJsonObject &json, const QString &key, int value) { for (QJsonObject::iterator it = json.begin(); it != json.end(); it++) @@ -532,7 +532,7 @@ bool WebAPIUtils::getSubObjectString(const QJsonObject &json, const QString &key return false; } -// Set string value withing nested JSON object +// Set string value within nested JSON object bool WebAPIUtils::setSubObjectString(QJsonObject &json, const QString &key, const QString &value) { for (QJsonObject::iterator it = json.begin(); it != json.end(); it++) @@ -607,7 +607,7 @@ bool WebAPIUtils::hasSubObject(const QJsonObject &json, const QString &key) return false; } -// Set value withing nested JSON object +// Set value within nested JSON object bool WebAPIUtils::setSubObject(QJsonObject &json, const QString &key, const QVariant &value) { for (QJsonObject::iterator it = json.begin(); it != json.end(); it++) diff --git a/sdrbench/test_callsign.cpp b/sdrbench/test_callsign.cpp index 4eba22c24..080cf76e4 100644 --- a/sdrbench/test_callsign.cpp +++ b/sdrbench/test_callsign.cpp @@ -26,13 +26,13 @@ void MainBench::testCallsign(const QString& argsStr) if (Callsign::is_callsign(argsStr)) { qInfo("MainBench::testCallsign: %s is a valid callsign", qPrintable(argsStr)); } else { - qInfo("MainBench::testCallsign: %s is mot a valid callsign", qPrintable(argsStr)); + qInfo("MainBench::testCallsign: %s is not a valid callsign", qPrintable(argsStr)); } if (Callsign::is_compound_callsign(argsStr)) { qInfo("MainBench::testCallsign: %s is a compound callsign", qPrintable(argsStr)); } else { - qInfo("MainBench::testCallsign: %s is mot a compound callsign", qPrintable(argsStr)); + qInfo("MainBench::testCallsign: %s is not a compound callsign", qPrintable(argsStr)); } qInfo("%s is the base callsign of %s", qPrintable(Callsign::base_callsign(argsStr)), qPrintable(argsStr)); diff --git a/sdrbench/test_ft8protocols.cpp b/sdrbench/test_ft8protocols.cpp index 573259c75..5aa632847 100644 --- a/sdrbench/test_ft8protocols.cpp +++ b/sdrbench/test_ft8protocols.cpp @@ -138,7 +138,7 @@ void TestFT8Protocols::testMsg1(const QStringList& argElements, bool runLDPC) if (runLDPC) { if (testLDPC(a77)) { - qInfo("TestFT8Protocols::testMsg1: LDPC test suceeded"); + qInfo("TestFT8Protocols::testMsg1: LDPC test succeeded"); } else { qWarning("TestFT8Protocols::testMsg1: LDPC test failed"); } @@ -169,7 +169,7 @@ void TestFT8Protocols::testMsg00(const QStringList& argElements, bool runLDPC) if (runLDPC) { if (testLDPC(a77)) { - qInfo("TestFT8Protocols::testMsg00: LDPC test suceeded"); + qInfo("TestFT8Protocols::testMsg00: LDPC test succeeded"); } else { qWarning("TestFT8Protocols::testMsg00: LDPC test failed"); } diff --git a/sdrgui/gui/glscopegui.cpp b/sdrgui/gui/glscopegui.cpp index 8a1db233d..fb786b0dc 100644 --- a/sdrgui/gui/glscopegui.cpp +++ b/sdrgui/gui/glscopegui.cpp @@ -247,7 +247,7 @@ bool GLScopeGUI::deserialize(const QByteArray& data) ScopeVis::MsgScopeVisChangeTrigger *msg = ScopeVis::MsgScopeVisChangeTrigger::create(triggerData, iTrigger); m_scopeVis->getInputMessageQueue()->push(msg); } - else // add new trigers + else // add new triggers { ScopeVis::MsgScopeVisAddTrigger *msg = ScopeVis::MsgScopeVisAddTrigger::create(triggerData); m_scopeVis->getInputMessageQueue()->push(msg); diff --git a/sdrgui/gui/glshaderspectrogram.cpp b/sdrgui/gui/glshaderspectrogram.cpp index a46f5fb05..467f90c30 100644 --- a/sdrgui/gui/glshaderspectrogram.cpp +++ b/sdrgui/gui/glshaderspectrogram.cpp @@ -761,7 +761,7 @@ const QString GLShaderSpectrogram::m_vertexShader = QString( ); // We need to use a geometry shader to calculate the normals, as they are only -// determined after z has been calculated for the verticies in the vertex shader +// determined after z has been calculated for the vertices in the vertex shader const QString GLShaderSpectrogram::m_geometryShader = QString( "#version 330\n" "layout(triangles) in;\n" diff --git a/sdrgui/gui/glspectrumview.cpp b/sdrgui/gui/glspectrumview.cpp index 72e3b3736..d4c486de3 100644 --- a/sdrgui/gui/glspectrumview.cpp +++ b/sdrgui/gui/glspectrumview.cpp @@ -1843,7 +1843,7 @@ void GLSpectrumView::paintGL() PROFILER_STOP(m_profileName) } // paintGL -// Hightlight power band for SFDR +// Highlight power band for SFDR void GLSpectrumView::drawPowerBandMarkers(float max, float min, const QVector4D &color) { float p1 = (m_powerScale.getRangeMax() - min) / m_powerScale.getRange(); @@ -1861,7 +1861,7 @@ void GLSpectrumView::drawPowerBandMarkers(float max, float min, const QVector4D m_glShaderSimple.drawSurface(m_glHistogramBoxMatrix, color, q3, 4); } -// Hightlight bandwidth being measured +// Highlight bandwidth being measured void GLSpectrumView::drawBandwidthMarkers(int64_t centerFrequency, int bandwidth, const QVector4D &color) { float f1 = (centerFrequency - bandwidth / 2); @@ -1881,7 +1881,7 @@ void GLSpectrumView::drawBandwidthMarkers(int64_t centerFrequency, int bandwidth m_glShaderSimple.drawSurface(m_glHistogramBoxMatrix, color, q3, 4); } -// Hightlight peak being measured. Note that the peak isn't always at the center +// Highlight peak being measured. Note that the peak isn't always at the center void GLSpectrumView::drawPeakMarkers(int64_t startFrequency, int64_t endFrequency, const QVector4D &color) { float x1 = (startFrequency - m_frequencyScale.getRangeMin()) / m_frequencyScale.getRange(); @@ -2379,7 +2379,7 @@ void GLSpectrumView::measure3dBBandwidth() } } - // Calcualte bandwidth + // Calculate bandwidth int bins = rightBin - leftBin - 1; bins = std::max(1, bins); float hzPerBin = m_sampleRate / (float) m_fftSize; diff --git a/sdrgui/gui/rollupcontents.cpp b/sdrgui/gui/rollupcontents.cpp index ae15062c1..9f9bf0d00 100644 --- a/sdrgui/gui/rollupcontents.cpp +++ b/sdrgui/gui/rollupcontents.cpp @@ -284,7 +284,7 @@ int RollupContents::paintRollup(QWidget* rollup, int pos, QPainter* p, bool last } } - // Titel + // Title p->setPen(palette().windowText().color()); p->drawText(QRect(2 + fm.height(), pos, width() - 4 - fm.height(), fm.height()), fm.elidedText(rollup->windowTitle(), Qt::ElideMiddle, width() - 4 - fm.height(), 0)); diff --git a/sdrsrv/mainserver.cpp b/sdrsrv/mainserver.cpp index 0e79081e1..27ae511b0 100644 --- a/sdrsrv/mainserver.cpp +++ b/sdrsrv/mainserver.cpp @@ -67,7 +67,7 @@ MainServer::MainServer(qtwebapp::LoggerWithFile *logger, const MainParser& parse connect(&m_inputMessageQueue, SIGNAL(messageEnqueued()), this, SLOT(handleMessages()), Qt::QueuedConnection); m_mainCore->m_masterTimer.start(50); - qDebug() << "MainServer::MainServer: load setings..."; + qDebug() << "MainServer::MainServer: load settings..."; loadSettings(); qDebug() << "MainServer::MainServer: finishing..."; diff --git a/wdsp/make_interface.cpp b/wdsp/make_interface.cpp index 5b591616d..755cf354f 100644 --- a/wdsp/make_interface.cpp +++ b/wdsp/make_interface.cpp @@ -14,7 +14,7 @@ extern blabla firstline secondline; - That is, the first line is pre-pended by "extern", and the last line is closed + That is, the first line is prepended by "extern", and the last line is closed with a semicolon. Comments starting with '//' are omitted, and lines starting with '//' are ignored. */