1
0
mirror of https://github.com/gnss-sdr/gnss-sdr synced 2024-12-14 12:10:34 +00:00

code cleaning

git-svn-id: https://svn.code.sf.net/p/gnss-sdr/code/trunk@192 64b25241-fba3-4117-9849-534c7e92360d
This commit is contained in:
Carles Fernandez 2012-03-24 03:31:56 +00:00
parent 7081c4fe8d
commit 89a67c93e8
2 changed files with 37 additions and 36 deletions

View File

@ -39,16 +39,16 @@
const double GPS_C_m_s = 299792458.0; //!< The speed of light, [m/s] const double GPS_C_m_s = 299792458.0; //!< The speed of light, [m/s]
const double GPS_C_m_ms = 299792.4580; //!< The speed of light, [m/ms] const double GPS_C_m_ms = 299792.4580; //!< The speed of light, [m/ms]
const double GPS_PI = 3.1415926535898; //!< Pi as defined in IS-GPS-200E const double GPS_PI = 3.1415926535898; //!< Pi as defined in IS-GPS-200E
const double GPS_TWO_PI = 6.283185307179586; //!< 2Pi as defined in IS-GPS-200E const double GPS_TWO_PI = 6.283185307179586;//!< 2Pi as defined in IS-GPS-200E
const double OMEGA_EARTH_DOT = 7.2921151467e-5; //!< Earth rotation rate, [rad/s] const double OMEGA_EARTH_DOT = 7.2921151467e-5; //!< Earth rotation rate, [rad/s]
const double GM = 3.986005e14; //!< Universal gravitational constant times the mass of the Earth, [m^3/s^2] const double GM = 3.986005e14; //!< Universal gravitational constant times the mass of the Earth, [m^3/s^2]
const double F = -4.442807633e-10; //!< Constant, [s/(m)^(1/2)] const double F = -4.442807633e-10; //!< Constant, [s/(m)^(1/2)]
// carrier and code frequencies // carrier and code frequencies
const double GPS_L1_FREQ_HZ = 1.57542e9; //!< L1 [Hz] const double GPS_L1_FREQ_HZ = 1.57542e9; //!< L1 [Hz]
const double GPS_L1_CA_CODE_RATE_HZ = 1.023e6; //!< GPS L1 C/A code rate [chips/s] const double GPS_L1_CA_CODE_RATE_HZ = 1.023e6; //!< GPS L1 C/A code rate [chips/s]
const double GPS_L1_CA_CODE_LENGTH_CHIPS = 1023.0; //!< GPS L1 C/A code length [chips] const double GPS_L1_CA_CODE_LENGTH_CHIPS = 1023.0; //!< GPS L1 C/A code length [chips]
/*! /*!
* \brief Maximum Time-Of-Arrival (TOA) difference between satellites for a receiver operated on Earth surface is 20 ms * \brief Maximum Time-Of-Arrival (TOA) difference between satellites for a receiver operated on Earth surface is 20 ms

View File

@ -34,42 +34,43 @@
#include "gnss_signal.h" #include "gnss_signal.h"
/*! /*!
* \brief This is the class that contains the information that flows through the blocks. * \brief This is the class that contains the information that is shared
* by the processing blocks.
*/ */
class Gnss_Synchro class Gnss_Synchro
{ {
public: public:
Gnss_Synchro(); Gnss_Synchro();
~Gnss_Synchro(); ~Gnss_Synchro();
// Satellite and signal info // Satellite and signal info
char System; char System; //!< Set by Channel::set_signal(Gnss_Signal gnss_signal)
char Signal[3]; char Signal[3]; //!< Set by Channel::set_signal(Gnss_Signal gnss_signal)
unsigned int PRN; unsigned int PRN; //!< Set by Channel::set_signal(Gnss_Signal gnss_signal)
// Acquisition int Channel_ID; //!< Set by Channel constructor
double Acq_delay_samples; // Acquisition
double Acq_doppler_hz; double Acq_delay_samples; //!< Set by Acquisition processing block
unsigned long int Acq_samplestamp_samples; double Acq_doppler_hz; //!< Set by Acquisition processing block
bool Flag_valid_acquisition; unsigned long int Acq_samplestamp_samples; //!< Set by Acquisition processing block
//Tracking bool Flag_valid_acquisition;
double Prompt_I; //Tracking
double Prompt_Q; double Prompt_I; //!< Set by Tracking processing block
double Carrier_phase_rads; double Prompt_Q; //!< Set by Tracking processing block
double Code_phase_secs; double Carrier_phase_rads; //!< Set by Tracking processing block
double Tracking_timestamp_secs; double Code_phase_secs; //!< Set by Tracking processing block
double CN0_dB_hz; double Tracking_timestamp_secs; //!< Set by Tracking processing block
bool Flag_valid_tracking; double CN0_dB_hz; //!< Set by Tracking processing block
//Telemetry Decoder bool Flag_valid_tracking;
double Preamble_delay_ms; //Telemetry Decoder
double Prn_delay_ms; double Preamble_delay_ms;
double Preamble_code_phase_ms; double Prn_delay_ms;
double Preamble_code_phase_correction_ms; double Preamble_code_phase_ms;
int Channel_ID; double Preamble_code_phase_correction_ms;
bool Flag_valid_word; bool Flag_valid_word;
bool Flag_preamble; bool Flag_preamble;
// Pseudorange // Pseudorange
double Pseudorange_m; double Pseudorange_m;
double Pseudorange_timestamp_ms; double Pseudorange_timestamp_ms;
bool Flag_valid_pseudorange; bool Flag_valid_pseudorange;
}; };
#endif #endif