10#ifndef INCLUDED_SATELLITES_DOPPLER_CORRECTION_IMPL_H
11#define INCLUDED_SATELLITES_DOPPLER_CORRECTION_IMPL_H
13#include <gnuradio/math.h>
26 size_t d_current_index;
29 std::vector<double> times;
30 std::vector<double> freqs_rad_per_sample;
31 std::vector<tag_t> d_tags;
34 const pmt::pmt_t d_rx_time_key;
37 const pmt::pmt_t d_pck_n_key;
38 const pmt::pmt_t d_full_key;
39 const pmt::pmt_t d_frac_key;
41 double d_current_time;
42 double d_current_freq;
47 while (d_phase > (2 * GR_M_PI))
48 d_phase -= 2 * GR_M_PI;
49 while (d_phase < (-2 * GR_M_PI))
50 d_phase += 2 * GR_M_PI;
55 void adjust_current_index()
57 while ((d_current_index > 0) && (times[d_current_index] > d_t0)) {
62 void read_doppler_file(std::string& filename);
72 gr::thread::scoped_lock guard(d_setlock);
73 return d_current_time;
78 gr::thread::scoped_lock guard(d_setlock);
79 return d_current_freq * d_samp_rate / (2.0 * GR_M_PI);
82 int work(
int noutput_items,
83 gr_vector_const_void_star& input_items,
84 gr_vector_void_star& output_items)
override;
Definition: doppler_correction_impl.h:22
int work(int noutput_items, gr_vector_const_void_star &input_items, gr_vector_void_star &output_items) override
doppler_correction_impl(std::string &filename, double samp_rate, double t0)
double frequency() override
Returns the current frequency in Hz.
Definition: doppler_correction_impl.h:76
void set_time(double) override
Sets the current time.
~doppler_correction_impl() override
double time() override
Returns the current time.
Definition: doppler_correction_impl.h:70
Performs Doppler correction using a frequency vs. time file.
Definition: doppler_correction.h:46
Definition: ax100_decode.h:17