mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2025-09-07 13:27:59 +00:00
fixed: Indentation according to coding style
git-svn-id: https://svn.code.sf.net/p/gnss-sdr/code/trunk@199 64b25241-fba3-4117-9849-534c7e92360d
This commit is contained in:
@@ -110,9 +110,9 @@ gps_l1_ca_pcps_acquisition_cc::~gps_l1_ca_pcps_acquisition_cc()
|
|||||||
void gps_l1_ca_pcps_acquisition_cc::init()
|
void gps_l1_ca_pcps_acquisition_cc::init()
|
||||||
{
|
{
|
||||||
|
|
||||||
d_gnss_synchro->Acq_delay_samples=0.0;
|
d_gnss_synchro->Acq_delay_samples = 0.0;
|
||||||
d_gnss_synchro->Acq_doppler_hz=0.0;
|
d_gnss_synchro->Acq_doppler_hz = 0.0;
|
||||||
d_gnss_synchro->Acq_samplestamp_samples=0;
|
d_gnss_synchro->Acq_samplestamp_samples = 0;
|
||||||
|
|
||||||
//d_code_phase = 0;
|
//d_code_phase = 0;
|
||||||
//d_doppler_freq = 0;
|
//d_doppler_freq = 0;
|
||||||
@@ -124,7 +124,7 @@ void gps_l1_ca_pcps_acquisition_cc::init()
|
|||||||
|
|
||||||
d_fft_if->execute(); // We need the FFT of GPS C/A code
|
d_fft_if->execute(); // We need the FFT of GPS C/A code
|
||||||
//Conjugate the local code
|
//Conjugate the local code
|
||||||
//TODO Optimize it ! try conj()
|
//TODO Optimize it !
|
||||||
for (unsigned int i = 0; i < d_fft_size; i++)
|
for (unsigned int i = 0; i < d_fft_size; i++)
|
||||||
{
|
{
|
||||||
d_fft_codes[i] = std::complex<float>(conj(d_fft_if->get_outbuf()[i]));
|
d_fft_codes[i] = std::complex<float>(conj(d_fft_if->get_outbuf()[i]));
|
||||||
@@ -176,8 +176,8 @@ int gps_l1_ca_pcps_acquisition_cc::general_work(int noutput_items,
|
|||||||
|
|
||||||
//restart acquisition variables
|
//restart acquisition variables
|
||||||
|
|
||||||
d_gnss_synchro->Acq_delay_samples=0.0;
|
d_gnss_synchro->Acq_delay_samples = 0.0;
|
||||||
d_gnss_synchro->Acq_doppler_hz=0.0;
|
d_gnss_synchro->Acq_doppler_hz = 0.0;
|
||||||
//d_code_phase = 0;
|
//d_code_phase = 0;
|
||||||
//d_doppler_freq = 0;
|
//d_doppler_freq = 0;
|
||||||
d_mag = 0.0;
|
d_mag = 0.0;
|
||||||
@@ -263,10 +263,8 @@ int gps_l1_ca_pcps_acquisition_cc::general_work(int noutput_items,
|
|||||||
if (d_mag < magt)
|
if (d_mag < magt)
|
||||||
{
|
{
|
||||||
d_mag = magt;
|
d_mag = magt;
|
||||||
d_gnss_synchro->Acq_delay_samples= (double)indext;
|
d_gnss_synchro->Acq_delay_samples = (double)indext;
|
||||||
d_gnss_synchro->Acq_doppler_hz= (double)doppler;
|
d_gnss_synchro->Acq_doppler_hz = (double)doppler;
|
||||||
//d_code_phase = indext;
|
|
||||||
//d_doppler_freq = doppler;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -47,7 +47,7 @@
|
|||||||
|
|
||||||
class gps_l1_ca_pcps_acquisition_cc;
|
class gps_l1_ca_pcps_acquisition_cc;
|
||||||
typedef boost::shared_ptr<gps_l1_ca_pcps_acquisition_cc>
|
typedef boost::shared_ptr<gps_l1_ca_pcps_acquisition_cc>
|
||||||
gps_l1_ca_pcps_acquisition_cc_sptr;
|
gps_l1_ca_pcps_acquisition_cc_sptr;
|
||||||
gps_l1_ca_pcps_acquisition_cc_sptr
|
gps_l1_ca_pcps_acquisition_cc_sptr
|
||||||
gps_l1_ca_pcps_make_acquisition_cc(unsigned int sampled_ms,
|
gps_l1_ca_pcps_make_acquisition_cc(unsigned int sampled_ms,
|
||||||
unsigned int doppler_max, long freq, long fs_in, int samples_per_ms,
|
unsigned int doppler_max, long freq, long fs_in, int samples_per_ms,
|
||||||
@@ -56,7 +56,8 @@ gps_l1_ca_pcps_make_acquisition_cc(unsigned int sampled_ms,
|
|||||||
/*!
|
/*!
|
||||||
* \brief This class implements a PCPS acquisition block for GPS L1 C/A
|
* \brief This class implements a PCPS acquisition block for GPS L1 C/A
|
||||||
*/
|
*/
|
||||||
class gps_l1_ca_pcps_acquisition_cc: public gr_block {
|
class gps_l1_ca_pcps_acquisition_cc: public gr_block
|
||||||
|
{
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user