Radio Control  Control Software and GUI for the Panoradio SDR, by DC9ST 2016
Signals | Public Member Functions | Private Slots | Private Member Functions | Private Attributes | List of all members
MainWindow Class Reference

Main class for controlling the Panoradio SDR. More...

#include <mainwindow.h>

Inheritance diagram for MainWindow:

Signals

void send_frontend_scaler_setting (int scaler_value_db)
 sends setting of the frontend scaler slider
 
void send_frontend_auto_setting (bool auto_setting)
 sends selection status of automatic scaling mode
 
void send_debug_single (double frequency)
 sends new debug frequency to the testgenerator More...
 
void send_debug_sweep (double start_f, double stop_f, double step_f)
 activates frequency sweep and sends parameters to the testgenerator More...
 
void send_audio_rx_frequency (double frequency, int ddc_number)
 sends request for new audio frequency (in kHz) to audio RX
 
void send_audio_ddc_selection (int ddc_number, bool active)
 sends request for activating or deactivating an audio DDC to audio RX
 
void send_audio_output_properties (int bandwidth, bool inverted, bool binaural)
 sends request for changing the audio processing properties to audio RX More...
 
void send_audio_output_scaler_setting (int scaling_value_db)
 sends request to change the audio scaler gain setting (after slider has been moved) to audio RX
 
void send_audio_output_scaler_auto_setting (bool autos_setting)
 sends request to change the automatic mode of the audio scaler to audio RX
 

Public Member Functions

 MainWindow (QWidget *parent=0)
 

Private Slots

void on_connect_pushButton_clicked ()
 initialize and start the radio
 
void update_waterfall ()
 initialize and start the radio
 
void get_frontend_rf_value (int rf_level, int rf_level_dbfs)
 new RF level received -> display in thermo widget
 
void get_frontend_scaling_value (int true_scaler_value_db)
 new scaling value set -> display in label and set gain_scaler_rf (for waterfalls)
 
void on_rfscaling_horizontalSlider_sliderMoved (int position)
 scaler for RF frontend moved -> send value in dB to frontend class
 
void on_checkBox_rf_scale_auto_clicked (bool checked)
 automatic check box clicked -> send value to frontend class and enable or disable slider
 
void debug_single_selected ()
 single frequency selected -> read frequency from lineEdit and send to Testgenerator
 
void debug_sweep_selected ()
 sweep frequency selected -> read sweep properties and send to Testgenerator
 
void get_debug_true_frequency (double frequency)
 new frequency set -> show in GUI
 
void on_debugmonitor_pushButton_clicked ()
 stop radio and start debug mode
 
void correct_plots ()
 debug function for manually correting the waterfall plot sizes
 
void waterfall_reset ()
 debug function for manually applying a hardware reset of the waterfall DDCs
 
void audio_reset ()
 debug function for manually applying a hardware reset of the audio DDCs
 
void get_audio_out_level (int audio_level, int audio_level_dbfs)
 new audio level received -> display in thermo widget
 
void get_audio_properties ()
 sends current audio output properties from GUI (bw, spectrum inv., binaural) to audio rx
 
void on_select_audio_ddc0_Button_clicked ()
 activate/deactivate audio DDC 0
 
void on_select_audio_ddc1_Button_clicked ()
 activate/deactivate audio DDC 1
 
void on_audio_ddc0_freq_lineEdit_textChanged ()
 frequency of audio DDC 0 in line edit changed -> send new freq to audio RX/DDC
 
void on_audio_ddc1_freq_lineEdit_textChanged ()
 frequency of audio DDC 1 in line edit changed -> send new freq to audio RX/DDC
 
void get_audio_frequency_clicked (double frequency)
 right click in waterfall window -> sends the frequency for tuning the audio RX More...
 
void get_audio_ddc0_new_frequency (double frequency)
 frequency change by shift in the audio waterfall 0 -> update frequency label
 
void get_audio_ddc1_new_frequency (double frequency)
 frequency change by shift in the audio waterfall 1 -> update frequency label
 
void on_audioscaling_horizontalSlider_sliderMoved (int position)
 scaler moved -> send value in dB to audio scaler
 
void on_checkBox_audio_scale_auto_clicked (bool checked)
 automatic scaling check box clicked -> send value to audio rx and enable or disable slider
 
void get_audio_scaling_value (int true_scaler_value_db)
 new scaling value set -> display in label
 
void on_update_rate_comboBox_currentIndexChanged (int index)
 update rate changed from GUI -> set timer for waterfall update accordingly
 
void on_avg_ffts_comboBox_currentIndexChanged (const QString &arg1)
 FFT averaging changed from GUI -> send number to waterfall DDCs.
 
void update_waterfall_color_map ()
 color map for waterfall changed from GUI > calculate new QwtLinearColorMap and set them for the waterfalls
 
void on_record_pushButton_clicked ()
 starts/stops recording data to a file
 

Private Member Functions

void set_bandwidth_bars ()
 update the display of the bandwidth bars in the audio waterfalls
 

Private Attributes

Ui::MainWindow * ui
 
DialogDebugMonitorui_debug_monitor
 
AD9467 * adc
 
AudioRXaudio_rx_
 
Frontendrx_frontend_
 
Testgeneratortestgenerator_
 
IP_Driver * iq_reset
 
WaterfallDDCwaterfall_ddc_
 
WaterfallDDCwaterfall_1a_ddc_
 
WaterfallDDCwaterfall_1b_ddc_
 
QTimer * timer_
 
double power_level_min_
 
double power_level_max_
 
double gain_mixer
 
int gain_scaler_rf
 
double gain_cic
 
double gain_fir
 
double gain_fir_audio
 
bool debug_monitor_activated_
 
fstream record_file_
 
bool currently_recording_
 

Detailed Description

Main class for controlling the Panoradio SDR.

Member Function Documentation

void MainWindow::get_audio_frequency_clicked ( double  frequency)
privateslot

right click in waterfall window -> sends the frequency for tuning the audio RX

Parameters
frequencyin kHz
void MainWindow::send_audio_output_properties ( int  bandwidth,
bool  inverted,
bool  binaural 
)
signal

sends request for changing the audio processing properties to audio RX

Parameters
bandwidth0: wideband, 1: mediumband, 2: narrowband
invertedspectrum inversion (other sideband)
binauralbinaural mode, i.e. stereo I/Q
void MainWindow::send_debug_single ( double  frequency)
signal

sends new debug frequency to the testgenerator

Parameters
frequencyin kHz
void MainWindow::send_debug_sweep ( double  start_f,
double  stop_f,
double  step_f 
)
signal

activates frequency sweep and sends parameters to the testgenerator

Parameters
start_fstart frequency in kHz
stop_fstop frequency in kHz
step_fstep frequency in kHz

The documentation for this class was generated from the following files: