mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-11-24 17:08:36 -05:00
Fix typos in cpp files
This commit is contained in:
parent
e56908b0c6
commit
4241f01376
@ -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;
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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)
|
||||
{
|
||||
|
@ -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<std::complex<float>> bins = fftEngine_->one_fft(
|
||||
samples_, 0, samples_.size());
|
||||
@ -2273,7 +2273,7 @@ std::vector<float> FT8::extract_bits(const std::vector<int> &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)
|
||||
|
@ -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);
|
||||
|
@ -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;
|
||||
|
@ -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>("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>("tSocketDescriptor");
|
||||
// Start listening
|
||||
listen();
|
||||
|
@ -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;
|
||||
|
@ -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<float, 150> M17Demodulator::rrc_taps = std::array<float, 150>{
|
||||
-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,
|
||||
|
@ -50,7 +50,7 @@ const std::array<uint8_t, 2> 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
|
||||
|
@ -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());
|
||||
|
||||
|
@ -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<SWGSDRangel::SWGMapAnimation *> * 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))
|
||||
{
|
||||
|
@ -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<int> ADSBDemodNotificationDialog::m_columnMap = {
|
||||
ADSB_COL_ICAO, ADSB_COL_CALLSIGN, ADSB_COL_MODEL,
|
||||
ADSB_COL_ALTITUDE, ADSB_COL_GROUND_SPEED, ADSB_COL_RANGE,
|
||||
|
@ -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)
|
||||
|
@ -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))))
|
||||
{
|
||||
|
@ -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<int16_t>::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];
|
||||
|
@ -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)
|
||||
{
|
||||
|
@ -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?
|
||||
|
@ -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)
|
||||
{
|
||||
|
@ -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)
|
||||
{
|
||||
|
@ -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
|
||||
|
@ -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<int16_t>::max();
|
||||
|
||||
if (m_demodBufferFill >= m_demodBuffer.size())
|
||||
|
@ -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
|
||||
|
@ -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<int16_t>::max();
|
||||
|
||||
if (m_demodBufferFill >= m_demodBuffer.size())
|
||||
|
@ -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<int16_t>::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];
|
||||
|
@ -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 {
|
||||
|
@ -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 }");
|
||||
|
@ -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);
|
||||
|
@ -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++;
|
||||
|
@ -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;
|
||||
|
@ -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
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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 )
|
||||
{
|
||||
|
@ -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
|
||||
*/
|
||||
}
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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 {
|
||||
|
@ -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)
|
||||
{
|
||||
|
@ -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);
|
||||
|
@ -44,8 +44,8 @@ const std::map<int, std::string> 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"},
|
||||
|
@ -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++)
|
||||
|
@ -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
|
||||
|
@ -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,
|
||||
|
@ -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);
|
||||
|
@ -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);
|
||||
|
@ -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<SatellitePass> createPassList(Observer& obs, SGP4& sgp4, DateTime& startTime,
|
||||
int predictionPeriod, double minAOSElevation, double minPassElevationDeg,
|
||||
QTime passStartTime, QTime passEndTime, bool utc,
|
||||
|
@ -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))
|
||||
{
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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)
|
||||
{
|
||||
|
@ -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);
|
||||
|
@ -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())
|
||||
|
@ -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);
|
||||
|
@ -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"))
|
||||
{
|
||||
|
@ -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,
|
||||
|
@ -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();
|
||||
|
||||
|
@ -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");
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -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");
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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);
|
||||
|
@ -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);
|
||||
|
@ -542,7 +542,7 @@ bool RTLSDRInput::applySettings(const RTLSDRSettings& settings, const QList<QStr
|
||||
if(m_dev != 0)
|
||||
{
|
||||
// Nooelec E4000 SDRs appear to require tuner_gain_mode to be reset to manual before
|
||||
// each call to set_tuner_gain, otherwise tuner AGC seems to be reenabled
|
||||
// each call to set_tuner_gain, otherwise tuner AGC seems to be re-enabled
|
||||
if (rtlsdr_set_tuner_gain_mode(m_dev, 1) < 0) {
|
||||
qCritical("RTLSDRInput::applySettings: error setting tuner gain mode to manual");
|
||||
}
|
||||
|
@ -205,7 +205,7 @@ int RTPSources::ProcessRawPacket(RTPRawPacket *rawpack, RTPTransmitter *rtptrans
|
||||
// what to do with this packet:
|
||||
if (acceptownpackets)
|
||||
{
|
||||
// sender addres for own packets has to be NULL!
|
||||
// sender address for own packets has to be NULL!
|
||||
if ((status = ProcessRTPPacket(rtppack, rawpack->GetReceiveTime(), 0, &stored)) < 0)
|
||||
{
|
||||
if (!stored)
|
||||
|
@ -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.
|
||||
*/
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -254,7 +254,7 @@ void DeviceEnumerator::enumerateDevices(std::initializer_list<PluginAPI::Samplin
|
||||
|
||||
// We don't remove devices that are no-longer found from the enumeration list, in case their
|
||||
// index is referenced in some other object (E.g. DeviceGUI)
|
||||
// Instead we mark as removed. If later re-added, then we re-use the same index
|
||||
// Instead we mark as removed. If later re-added, then we reuse the same index
|
||||
for(size_t i = 0; i < 3; i++)
|
||||
{
|
||||
if (enumerationsArray[i] != nullptr) {
|
||||
|
@ -54,7 +54,7 @@ void FMPreemphasis::configure(int sampleRate, Real tau, Real highFreq)
|
||||
// Adjust with a gain, g, so 0 dB gain at DC
|
||||
double g = std::abs(1.0 - p1) / (b0 * std::abs(1.0 - z1));
|
||||
|
||||
// Caclulate IIR taps
|
||||
// Calculate IIR taps
|
||||
m_b0 = (Real)(g * b0 * 1.0);
|
||||
m_b1 = (Real)(g * b0 * -z1);
|
||||
m_a1 = (Real)-p1;
|
||||
|
@ -78,7 +78,7 @@ void MorseDemod::processOneSample(const Complex &magc)
|
||||
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++;
|
||||
|
@ -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<float>& 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;
|
||||
|
@ -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
|
||||
|
@ -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();
|
||||
|
@ -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);
|
||||
}
|
||||
|
@ -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
|
||||
|
@ -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);
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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++)
|
||||
|
@ -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));
|
||||
|
@ -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");
|
||||
}
|
||||
|
@ -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);
|
||||
|
@ -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"
|
||||
|
@ -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;
|
||||
|
@ -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));
|
||||
|
@ -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...";
|
||||
|
@ -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.
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user