Skip to content

Commit

Permalink
Remove extra whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
argilo committed Apr 14, 2023
1 parent bf312e9 commit 9857b1b
Show file tree
Hide file tree
Showing 15 changed files with 389 additions and 390 deletions.
2 changes: 1 addition & 1 deletion LICENSE-CTK
Original file line number Diff line number Diff line change
Expand Up @@ -200,4 +200,4 @@
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
limitations under the License.
14 changes: 7 additions & 7 deletions MANIFEST.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,29 +18,29 @@ stable_release: HEAD
icon:
---

Gqrx is an open source software defined radio (SDR) receiver implemented using GNU Radio and the Qt GUI toolkit.
Gqrx is an open source software defined radio (SDR) receiver implemented using GNU Radio and the Qt GUI toolkit.
Currently it works on Linux and Mac with hardware supported by gr-osmosdr, including Funcube Dongle, RTL-SDR, Airspy, HackRF, BladeRF, RFSpace, USRP and SoapySDR.
Gqrx can operate as an AM/FM/SSB receiver with audio output or as an FFT-only instrument.
Gqrx can operate as an AM/FM/SSB receiver with audio output or as an FFT-only instrument.
There are also various hooks for interacting with external application using nertwork sockets.

Download:

Gqrx is distributed as source code package and binaries for Linux and Mac.
Gqrx is distributed as source code package and binaries for Linux and Mac.
Alternate Mac support is available through macports and homebrew.
Please see https://gqrx.dk/download for a list of download resources.

Usage:

It is strongly recommended to run the "volk_profile" gnuradio utility before running gqrx.
It is strongly recommended to run the "volk_profile" gnuradio utility before running gqrx.
This will detect and enable processor specific optimisations and will in many cases give a significant performance boost.
The first time you start gqrx it will open a device configuration dialog.
The first time you start gqrx it will open a device configuration dialog.
Supported devices that are connected to the computer are discovered automatically and you can select any of them in the drop-down list.
If you don't see your device listed in the drop-down list it could be because:
1. The driver has not been included in a binary distribution
2. The udev rule has not been properly configured
3. Linux kernel driver is blocking access to the device
You can test your device using device specific tools, such as rtl_test, airspy_rx, hackrf_transfer, qthid, etc.
Gqrx supports multiple configurations and sessions if you have several devices or if you want to use the same device under different configurations.
You can load a configuration from the GUI or using the -c command line argument.
Gqrx supports multiple configurations and sessions if you have several devices or if you want to use the same device under different configurations.
You can load a configuration from the GUI or using the -c command line argument.
See "gqrx --help" for a complete list of command line arguments.
Tutorials and howtos are being written and published on the website https://gqrx.dk/
4 changes: 2 additions & 2 deletions src/applications/gqrx/remote_control_settings.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class RemoteControlSettings;
class RemoteControlSettings : public QDialog
{
Q_OBJECT

public:
explicit RemoteControlSettings(QWidget *parent = 0);
~RemoteControlSettings();
Expand All @@ -45,7 +45,7 @@ class RemoteControlSettings : public QDialog

void setHosts(QStringList hosts);
QStringList getHosts(void) const;

private slots:
void on_hostAddButton_clicked(void);
void on_hostDelButton_clicked(void);
Expand Down
510 changes: 255 additions & 255 deletions src/dsp/afsk1200/costabf.c

Large diffs are not rendered by default.

158 changes: 79 additions & 79 deletions src/dsp/agc_impl.h
Original file line number Diff line number Diff line change
@@ -1,79 +1,79 @@
//////////////////////////////////////////////////////////////////////
// agc_impl.h: interface for the CAgc class.
//
// This class implements an automatic gain function.
//
// History:
// 2010-09-15 Initial creation MSW
// 2011-03-27 Initial release
// 2011-09-24 Adapted for gqrx
//////////////////////////////////////////////////////////////////////
#ifndef AGC_IMPL_H
#define AGC_IMPL_H

#include <complex>
#include <deque>

#define MAX_DELAY_BUF 2048

/*
typedef struct _dCplx
{
double re;
double im;
} tDComplex;
#define TYPECPX tDComplex
*/

#define TYPECPX std::complex<float>


class CAgc
{
public:
CAgc();
virtual ~CAgc();
void SetParameters(bool AgcOn, bool UseHang, int Threshold, int ManualGain, int Slope, int Decay, double SampleRate);
void ProcessData(int Length, const TYPECPX * pInData, TYPECPX * pOutData);

private:
bool m_AgcOn;
bool m_UseHang;
int m_Threshold;
int m_ManualGain;
int m_Decay;

float m_SampleRate;

float m_SlopeFactor;
float m_ManualAgcGain;

float m_DecayAve;
float m_AttackAve;

float m_AttackRiseAlpha;
float m_AttackFallAlpha;
float m_DecayRiseAlpha;
float m_DecayFallAlpha;

float m_FixedGain;
float m_Knee;
float m_GainSlope;
float m_Peak;

int m_SigDelayPtr;
int m_MagBufPos;
int m_DelaySamples;
int m_WindowSamples;
int m_HangTime;
int m_HangTimer;

TYPECPX m_SigDelayBuf[MAX_DELAY_BUF];
float* m_SigDelayBuf_r;

float m_MagBuf[MAX_DELAY_BUF];
std::deque<int> m_MagDeque;
};

#endif // AGC_IMPL_H
//////////////////////////////////////////////////////////////////////
// agc_impl.h: interface for the CAgc class.
//
// This class implements an automatic gain function.
//
// History:
// 2010-09-15 Initial creation MSW
// 2011-03-27 Initial release
// 2011-09-24 Adapted for gqrx
//////////////////////////////////////////////////////////////////////
#ifndef AGC_IMPL_H
#define AGC_IMPL_H

#include <complex>
#include <deque>

#define MAX_DELAY_BUF 2048

/*
typedef struct _dCplx
{
double re;
double im;
} tDComplex;
#define TYPECPX tDComplex
*/

#define TYPECPX std::complex<float>


class CAgc
{
public:
CAgc();
virtual ~CAgc();
void SetParameters(bool AgcOn, bool UseHang, int Threshold, int ManualGain, int Slope, int Decay, double SampleRate);
void ProcessData(int Length, const TYPECPX * pInData, TYPECPX * pOutData);

private:
bool m_AgcOn;
bool m_UseHang;
int m_Threshold;
int m_ManualGain;
int m_Decay;

float m_SampleRate;

float m_SlopeFactor;
float m_ManualAgcGain;

float m_DecayAve;
float m_AttackAve;

float m_AttackRiseAlpha;
float m_AttackFallAlpha;
float m_DecayRiseAlpha;
float m_DecayFallAlpha;

float m_FixedGain;
float m_Knee;
float m_GainSlope;
float m_Peak;

int m_SigDelayPtr;
int m_MagBufPos;
int m_DelaySamples;
int m_WindowSamples;
int m_HangTime;
int m_HangTimer;

TYPECPX m_SigDelayBuf[MAX_DELAY_BUF];
float* m_SigDelayBuf_r;

float m_MagBuf[MAX_DELAY_BUF];
std::deque<int> m_MagDeque;
};

#endif // AGC_IMPL_H
2 changes: 1 addition & 1 deletion src/dsp/rx_filter.h
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ rx_xlating_filter_sptr make_rx_xlating_filter(double sample_rate,
* required to generate complex band pass filter taps. It provides a simple
* interface to set the filter offset and limits and takes care of generating
* the appropriate taps according to the limits.
*
*
* The filter limits are relative to the filter offset and thanks to the complex taps
* they can be both positive and negative.
*
Expand Down
2 changes: 1 addition & 1 deletion src/portaudio/device_list.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ int portaudio_device_list::populate_device_list()
PaError err;

std::cout << Pa_GetVersionText() << " (version " << Pa_GetVersion() << ")" << std::endl;

num_dev = Pa_GetDeviceCount();
if (num_dev < 0)
{
Expand Down
4 changes: 2 additions & 2 deletions src/qtgui/agc_options.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,13 @@ class CAgcOptions;
class CAgcOptions : public QDialog
{
Q_OBJECT

public:
explicit CAgcOptions(QWidget *parent = 0);
~CAgcOptions();

void closeEvent(QCloseEvent *event);

int gain();
void setGain(int value);
void enableGain(bool enabled);
Expand Down
2 changes: 1 addition & 1 deletion src/qtgui/audio_options.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ namespace Ui {
class CAudioOptions : public QDialog
{
Q_OBJECT

public:
explicit CAudioOptions(QWidget *parent = 0);
~CAudioOptions();
Expand Down
2 changes: 1 addition & 1 deletion src/qtgui/bookmarkstablemodel.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class BookmarksTableModel : public QAbstractTableModel
};

explicit BookmarksTableModel(QObject *parent = 0);

int rowCount ( const QModelIndex & parent = QModelIndex() ) const;
int columnCount ( const QModelIndex & parent = QModelIndex() ) const;
QVariant headerData ( int section, Qt::Orientation orientation, int role = Qt::DisplayRole ) const;
Expand Down
4 changes: 2 additions & 2 deletions src/qtgui/ctk/ctkPimpl.h
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ class CTK_CORE_EXPORT ctkFooObject: public QObject
protected:
QScopedPointer<ctkFooObjectPrivate> d_ptr;
private:
Q_DECLARE_PRIVATE(ctkFooObject);
Q_DISABLE_COPY(ctkFooObject);
Expand Down Expand Up @@ -161,7 +161,7 @@ double ctkFooObject::property()const
, d_ptr(new PUB##Private) \
{ \
}

/*!
* Define the setter in the public class.
*
Expand Down
Loading

0 comments on commit 9857b1b

Please sign in to comment.