mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2024-12-13 19:50: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:
parent
7081c4fe8d
commit
89a67c93e8
@ -39,16 +39,16 @@
|
||||
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_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 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)]
|
||||
|
||||
|
||||
// carrier and code frequencies
|
||||
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_LENGTH_CHIPS = 1023.0; //!< GPS L1 C/A code length [chips]
|
||||
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_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
|
||||
|
@ -34,42 +34,43 @@
|
||||
#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
|
||||
{
|
||||
public:
|
||||
Gnss_Synchro();
|
||||
~Gnss_Synchro();
|
||||
// Satellite and signal info
|
||||
char System;
|
||||
char Signal[3];
|
||||
unsigned int PRN;
|
||||
// Acquisition
|
||||
double Acq_delay_samples;
|
||||
double Acq_doppler_hz;
|
||||
unsigned long int Acq_samplestamp_samples;
|
||||
bool Flag_valid_acquisition;
|
||||
//Tracking
|
||||
double Prompt_I;
|
||||
double Prompt_Q;
|
||||
double Carrier_phase_rads;
|
||||
double Code_phase_secs;
|
||||
double Tracking_timestamp_secs;
|
||||
double CN0_dB_hz;
|
||||
bool Flag_valid_tracking;
|
||||
//Telemetry Decoder
|
||||
double Preamble_delay_ms;
|
||||
double Prn_delay_ms;
|
||||
double Preamble_code_phase_ms;
|
||||
double Preamble_code_phase_correction_ms;
|
||||
int Channel_ID;
|
||||
bool Flag_valid_word;
|
||||
bool Flag_preamble;
|
||||
// Pseudorange
|
||||
double Pseudorange_m;
|
||||
double Pseudorange_timestamp_ms;
|
||||
bool Flag_valid_pseudorange;
|
||||
Gnss_Synchro();
|
||||
~Gnss_Synchro();
|
||||
// Satellite and signal info
|
||||
char System; //!< Set by Channel::set_signal(Gnss_Signal gnss_signal)
|
||||
char Signal[3]; //!< Set by Channel::set_signal(Gnss_Signal gnss_signal)
|
||||
unsigned int PRN; //!< Set by Channel::set_signal(Gnss_Signal gnss_signal)
|
||||
int Channel_ID; //!< Set by Channel constructor
|
||||
// Acquisition
|
||||
double Acq_delay_samples; //!< Set by Acquisition processing block
|
||||
double Acq_doppler_hz; //!< Set by Acquisition processing block
|
||||
unsigned long int Acq_samplestamp_samples; //!< Set by Acquisition processing block
|
||||
bool Flag_valid_acquisition;
|
||||
//Tracking
|
||||
double Prompt_I; //!< Set by Tracking processing block
|
||||
double Prompt_Q; //!< Set by Tracking processing block
|
||||
double Carrier_phase_rads; //!< Set by Tracking processing block
|
||||
double Code_phase_secs; //!< Set by Tracking processing block
|
||||
double Tracking_timestamp_secs; //!< Set by Tracking processing block
|
||||
double CN0_dB_hz; //!< Set by Tracking processing block
|
||||
bool Flag_valid_tracking;
|
||||
//Telemetry Decoder
|
||||
double Preamble_delay_ms;
|
||||
double Prn_delay_ms;
|
||||
double Preamble_code_phase_ms;
|
||||
double Preamble_code_phase_correction_ms;
|
||||
bool Flag_valid_word;
|
||||
bool Flag_preamble;
|
||||
// Pseudorange
|
||||
double Pseudorange_m;
|
||||
double Pseudorange_timestamp_ms;
|
||||
bool Flag_valid_pseudorange;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user