Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix typos #2206

Merged
merged 4 commits into from
Jul 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions app/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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; } "
Expand Down Expand Up @@ -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;
}

Expand Down Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion appsrv/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down
2 changes: 1 addition & 1 deletion devices/usrp/deviceusrpparam.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down
4 changes: 2 additions & 2 deletions fcdhid/fcdhid.h
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ void fcdClose(hid_device *phd);
FCD_MODE_ENUM fcdGetMode(hid_device *phd);

/** \brief Get FCD firmware version as string.
* \param str The returned vesion number as a 0 terminated string (must be pre-allocated)
* \param str The returned version number as a 0 terminated string (must be pre-allocated)
* \return The current FCD mode.
* \sa FCD_MODE_ENUM
*/
Expand Down Expand Up @@ -183,7 +183,7 @@ FCD_MODE_ENUM fcdBlWriteFirmware(hid_device *phd, char *pc, int64_t n64Size);
/** \brief Verify firmware in FCd flash.
* \param pc Pointer to firmware data to verify against.
* \param n64Size Size of the data in pc.
* \return The FCD_MODE_BL if verification was succesful.
* \return The FCD_MODE_BL if verification was successful.
*
* This function verifies the firmware currently in the FCd flash against the firmware
* image pointed to by pc. The function return FCD_MODE_BL if the verification is OK and
Expand Down
6 changes: 3 additions & 3 deletions ft8/ft8.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down Expand Up @@ -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(
Expand Down Expand Up @@ -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)
Expand Down
6 changes: 3 additions & 3 deletions ft8/ft8.h
Original file line number Diff line number Diff line change
Expand Up @@ -264,14 +264,14 @@ class FT8_API FT8 : public QObject

FT8Params& getParams() { return params; }
//
// 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[].
//
static int decode(const float ll174[], int a174[], FT8Params& params, int use_osd, std::string &comment);
// encode a 77 bit message into a 174 bit payload
// adds the 14 bit CRC to obtain 91 bits
// apply (174, 91) generator mastrix to obtain the 83 parity bits
// append the 83 bits to the 91 bits messag e+ crc to obbain the 174 bit payload
// append the 83 bits to the 91 bits message e+ crc to obtain the 174 bit payload
static void encode(int a174[], int s77[]);

//
Expand Down Expand Up @@ -490,7 +490,7 @@ class FT8_API FT8 : public QObject
// scaled by str.
//
std::vector<float> extract_bits(const std::vector<int> &syms, const std::vector<float> str);
// 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 soft_decode_pairs(
Expand Down
2 changes: 1 addition & 1 deletion ft8/osd.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class OSD
static int osd_decode(float codeword[174], int depth, int out[91], int *out_depth);
};

} // namepsace FT8
} // namespace FT8

#endif // osd_h

2 changes: 1 addition & 1 deletion ft8/packing.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion httpserver/httpconnectionhandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
4 changes: 2 additions & 2 deletions httpserver/httplistener.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand All @@ -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();
Expand Down
4 changes: 2 additions & 2 deletions httpserver/httplistener.h
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ class HTTPSERVER_API HttpListener : public QTcpServer {
virtual ~HttpListener();

/**
Restart listeing after close().
Restart listening after close().
*/
void listen();

Expand Down Expand Up @@ -108,7 +108,7 @@ class HTTPSERVER_API HttpListener : public QTcpServer {
/** Configuration settings for the HTTP server as a structure */
HttpListenerSettings listenerSettings;

/** Point to the reuqest handler which processes all HTTP requests */
/** Point to the request handler which processes all HTTP requests */
HttpRequestHandler* requestHandler;

/** Pool of connection handlers */
Expand Down
4 changes: 2 additions & 2 deletions httpserver/httprequest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down
4 changes: 2 additions & 2 deletions httpserver/httprequest.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ namespace qtwebapp {
from a TCP socket and provides getters for the individual parts
of the request.
<p>
The follwing config settings are required:
The following config settings are required:
<code><pre>
maxRequestSize=16000
maxMultiPartSize=1000000
Expand Down Expand Up @@ -73,7 +73,7 @@ class HTTPSERVER_API HttpRequest {
void readFromSocket(QTcpSocket* socket);

/**
Get the status of this reqeust.
Get the status of this request.
@see RequestStatus
*/
RequestStatus getStatus() const;
Expand Down
2 changes: 1 addition & 1 deletion logging/filelogger.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ namespace qtwebapp {

@see set() describes how to set logger variables
@see LogMessage for a description of the message decoration.
@see Logger for a descrition of the buffer.
@see Logger for a description of the buffer.
*/

class LOGGING_API FileLogger : public Logger {
Expand Down
2 changes: 1 addition & 1 deletion logging/logger.h
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ class LOGGING_API Logger : public QObject {
Constructor.
@param msgFormat Format of the decoration, e.g. "{timestamp} {type} thread={thread}: {msg}"
@param timestampFormat Format of timestamp, e.g. "yyyy-MM-dd HH:mm:ss.zzz"
@param minLevel Minimum severity that genertes an output (0=debug, 1=warning, 2=critical, 3=fatal).
@param minLevel Minimum severity that generates an output (0=debug, 1=warning, 2=critical, 3=fatal).
@param bufferSize Size of the backtrace buffer, number of messages per thread. 0=disabled.
@param parent Parent object
@see LogMessage for a description of the message decoration.
Expand Down
2 changes: 1 addition & 1 deletion modemm17/M17Demodulator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion modemm17/M17Modulator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion modemm17/SlidingDFT.h
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ class NSlidingDFT

/**
* Construct the DFT with an array of frequencies. These frequencies
* should be less than @tparam SampleRate / 2 and a mulitple of
* should be less than @tparam SampleRate / 2 and a multiple of
* @tparam SampleRate / @tparam N. No validation is performed on
* these frequencies passed to the constructor.
*/
Expand Down
2 changes: 1 addition & 1 deletion plugins/channelmimo/doa2/doa2compass.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class DOA2Compass : public QWidget
/// \brief Set all data (yaw, alt, height)
///
/// \param azPos - forward (positive angles side relative to antennas direction) azimuth (in degrees)
/// \param azNeg - reverse (negatve angles side relative to antennas direction) azimuth (in degrees)
/// \param azNeg - reverse (negative angles side relative to antennas direction) azimuth (in degrees)
/// \param azAnt - antennas azimuth from 1 (connected to stream 0) to 2 (connected to stream 1)
///
void setData(double azPos, double azNeg, double azAnt) {
Expand Down
2 changes: 1 addition & 1 deletion plugins/channelrx/demodadsb/adsbdemodbaseband.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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());

Expand Down
Loading
Loading