20 #ifndef GNSS_SDR_GLONASS_GNAV_NAVIGATION_MESSAGE_H 21 #define GNSS_SDR_GLONASS_GNAV_NAVIGATION_MESSAGE_H 58 bool CRC_test(std::bitset<GLONASS_GNAV_STRING_BITS>& bits)
const;
72 return gnav_ephemeris;
80 return gnav_utc_model;
112 inline bool get_flag_CRC_test()
const 114 return flag_CRC_test;
117 inline void set_rf_link(int32_t rf_link)
122 inline uint32_t get_alm_satellite_slot_number()
const 124 return i_alm_satellite_slot_number;
127 inline bool get_flag_update_slot_number()
const 129 return flag_update_slot_number;
132 inline void set_flag_update_slot_number(
bool flag_slot)
134 flag_update_slot_number = flag_slot;
137 inline bool get_flag_TOW_new()
const 142 inline void set_flag_TOW_new(
bool tow_new)
144 flag_TOW_new = tow_new;
147 inline bool is_flag_TOW_set()
const 152 inline void set_flag_ephemeris_str_1(
bool ephemeris_str_1)
154 flag_ephemeris_str_1 = ephemeris_str_1;
157 inline void set_flag_ephemeris_str_2(
bool ephemeris_str_2)
159 flag_ephemeris_str_2 = ephemeris_str_2;
162 inline void set_flag_ephemeris_str_3(
bool ephemeris_str_3)
164 flag_ephemeris_str_3 = ephemeris_str_3;
167 inline void set_flag_ephemeris_str_4(
bool ephemeris_str_4)
169 flag_ephemeris_str_4 = ephemeris_str_4;
173 uint64_t read_navigation_unsigned(
const std::bitset<GLONASS_GNAV_STRING_BITS>& bits,
const std::vector<std::pair<int32_t, int32_t>>& parameter)
const;
174 int64_t read_navigation_signed(
const std::bitset<GLONASS_GNAV_STRING_BITS>& bits,
const std::vector<std::pair<int32_t, int32_t>>& parameter)
const;
175 bool read_navigation_bool(
const std::bitset<GLONASS_GNAV_STRING_BITS>& bits,
const std::vector<std::pair<int32_t, int32_t>>& parameter)
const;
181 std::map<int, std::string> satelliteBlock;
183 double d_previous_tb{};
184 double d_previous_Na[GLONASS_CA_NBR_SATS]{};
186 uint32_t d_frame_ID{};
187 uint32_t d_string_ID{};
188 uint32_t i_alm_satellite_slot_number{};
190 bool flag_CRC_test{};
191 bool flag_update_slot_number{};
194 bool flag_all_ephemeris{};
195 bool flag_ephemeris_str_1{};
196 bool flag_ephemeris_str_2{};
197 bool flag_ephemeris_str_3{};
198 bool flag_ephemeris_str_4{};
201 bool flag_almanac_str_6{};
202 bool flag_almanac_str_7{};
203 bool flag_almanac_str_8{};
204 bool flag_almanac_str_9{};
205 bool flag_almanac_str_10{};
206 bool flag_almanac_str_11{};
207 bool flag_almanac_str_12{};
208 bool flag_almanac_str_13{};
209 bool flag_almanac_str_14{};
210 bool flag_almanac_str_15{};
213 bool flag_utc_model_str_5{};
222 #endif // GNSS_SDR_GLONASS_GNAV_NAVIGATION_MESSAGE_H bool have_new_ephemeris()
Returns true if a new Glonass_Gnav_Ephemeris object has arrived.
int32_t i_satellite_freq_channel
SV Frequency Channel Number.
Defines system parameters for GLONASS L1 C/A signal and NAV data.
Interface of a GLONASS EPHEMERIS storage.
Interface of a GLONASS GNAV UTC MODEL storage.
Interface of a GLONASS GNAV ALMANAC storage.
bool CRC_test(std::bitset< GLONASS_GNAV_STRING_BITS > &bits) const
Compute CRC for GLONASS GNAV strings.
Glonass_Gnav_Utc_Model get_utc_model() const
Obtain a GLONASS GNAV UTC model parameters class filled with current SV data.
This class is a storage and orbital model functions for the GLONASS SV ephemeris data as described in...
bool have_new_almanac()
Returns true if new Glonass_Gnav_Almanac object has arrived.
This class is a storage for the GLONASS GNAV UTC MODEL data as described in GLONASS ICD (Edition 5...
int32_t string_decoder(const std::string &frame_string)
Decodes the GLONASS GNAV string.
uint32_t get_frame_number(uint32_t satellite_slot_number)
Computes the frame number being decoded given the satellite slot number.
This class is a storage for the GLONASS SV ALMANAC data as described GLONASS ICD (Edition 5...
bool have_new_utc_model()
Returns true if new Glonass_Gnav_Utc_Model object has arrived.
Glonass_Gnav_Ephemeris get_ephemeris() const
Obtain a GLONASS GNAV SV Ephemeris class filled with current SV data.
This class decodes a GLONASS GNAV Data message as described in GLONASS ICD (Edition 5...
Glonass_Gnav_Navigation_Message()
Glonass_Gnav_Almanac get_almanac(uint32_t satellite_slot_number) const
Returns a Glonass_Gnav_Almanac object filled with the latest navigation data received.