diff --git a/config.yml b/config.yml index 67a41a5..9a2dd1b 100644 --- a/config.yml +++ b/config.yml @@ -49,7 +49,6 @@ satellites: rrc_alpha: 0.6 rrc_taps: 31 costas_bw: 0.005 - iq_invert: true - norad: 25338 # NOAA 15 min_elevation: 10 priority: 1 diff --git a/src/dsp/dsp.cpp b/src/dsp/dsp.cpp index 9a0b7b6..86b2c60 100644 --- a/src/dsp/dsp.cpp +++ b/src/dsp/dsp.cpp @@ -33,7 +33,7 @@ DeviceDSP::DeviceDSP(int samplerate, int frequency, int gain) : d_samplerate(sam setSamplerate(d_samplerate); setFrequency(d_frequency); - setGain(49); + setGain(d_gain); } DeviceDSP::~DeviceDSP() diff --git a/src/dsp/modem/modem_qpsk.cpp b/src/dsp/modem/modem_qpsk.cpp index bb07297..ed293a3 100644 --- a/src/dsp/modem/modem_qpsk.cpp +++ b/src/dsp/modem/modem_qpsk.cpp @@ -6,8 +6,7 @@ ModemQPSK::ModemQPSK(int frequency, int samplerate, std::map 0 ? (parameters["iq_invert"] == "true") : false) + d_loop_bw(std::stof(parameters["costas_bw"])) { output_file = std::ofstream(d_parameters["file"], std::ios::binary); @@ -50,8 +49,8 @@ void ModemQPSK::work(std::complex *buffer, int length) for (int i = 0; i < rec_out; i++) { - sym_buffer[i * 2 + d_iq_invert] = clamp(rec_buffer[i].imag() * 100); - sym_buffer[i * 2 + (1 - d_iq_invert)] = clamp(rec_buffer[i].real() * 100); + sym_buffer[i * 2 + 0] = clamp(rec_buffer[i].real() * 100); + sym_buffer[i * 2 + 1] = clamp(rec_buffer[i].imag() * 100); } output_file.write((char *)sym_buffer, rec_out * 2); diff --git a/src/dsp/modem/modem_qpsk.h b/src/dsp/modem/modem_qpsk.h index ecae774..a877dc5 100644 --- a/src/dsp/modem/modem_qpsk.h +++ b/src/dsp/modem/modem_qpsk.h @@ -22,7 +22,6 @@ class ModemQPSK : public Modem float d_rrc_alpha; int d_rrc_taps; float d_loop_bw; - bool d_iq_invert; std::complex *agc_buffer; std::complex *rrc_buffer;