GNSS-SDR  0.0.19
An Open Source GNSS Software Defined Receiver
Public Member Functions | List of all members
Glonass_Gnav_Navigation_Message Class Reference

This class decodes a GLONASS GNAV Data message as described in GLONASS ICD (Edition 5.1) More...

#include <glonass_gnav_navigation_message.h>

Public Member Functions

 Glonass_Gnav_Navigation_Message ()
 
bool CRC_test (std::bitset< GLONASS_GNAV_STRING_BITS > &bits) const
 Compute CRC for GLONASS GNAV strings. More...
 
uint32_t get_frame_number (uint32_t satellite_slot_number)
 Computes the frame number being decoded given the satellite slot number. More...
 
Glonass_Gnav_Ephemeris get_ephemeris () const
 Obtain a GLONASS GNAV SV Ephemeris class filled with current SV data. More...
 
Glonass_Gnav_Utc_Model get_utc_model () const
 Obtain a GLONASS GNAV UTC model parameters class filled with current SV data. More...
 
Glonass_Gnav_Almanac get_almanac (uint32_t satellite_slot_number) const
 Returns a Glonass_Gnav_Almanac object filled with the latest navigation data received. More...
 
bool have_new_ephemeris ()
 Returns true if a new Glonass_Gnav_Ephemeris object has arrived. More...
 
bool have_new_utc_model ()
 Returns true if new Glonass_Gnav_Utc_Model object has arrived. More...
 
bool have_new_almanac ()
 Returns true if new Glonass_Gnav_Almanac object has arrived. More...
 
int32_t string_decoder (const std::string &frame_string)
 Decodes the GLONASS GNAV string. More...
 
bool get_flag_CRC_test () const
 
void set_rf_link (int32_t rf_link)
 
uint32_t get_alm_satellite_slot_number () const
 
bool get_flag_update_slot_number () const
 
void set_flag_update_slot_number (bool flag_slot)
 
bool get_flag_TOW_new () const
 
void set_flag_TOW_new (bool tow_new)
 
bool is_flag_TOW_set () const
 
void set_flag_ephemeris_str_1 (bool ephemeris_str_1)
 
void set_flag_ephemeris_str_2 (bool ephemeris_str_2)
 
void set_flag_ephemeris_str_3 (bool ephemeris_str_3)
 
void set_flag_ephemeris_str_4 (bool ephemeris_str_4)
 

Detailed Description

This class decodes a GLONASS GNAV Data message as described in GLONASS ICD (Edition 5.1)

Note
Code added as part of GSoC 2017 program
See also
GLONASS ICD

Definition at line 46 of file glonass_gnav_navigation_message.h.

Constructor & Destructor Documentation

◆ Glonass_Gnav_Navigation_Message()

Glonass_Gnav_Navigation_Message::Glonass_Gnav_Navigation_Message ( )

Default constructor

Member Function Documentation

◆ CRC_test()

bool Glonass_Gnav_Navigation_Message::CRC_test ( std::bitset< GLONASS_GNAV_STRING_BITS > &  bits) const

Compute CRC for GLONASS GNAV strings.

Parameters
bitsBits of the string message where to compute CRC

◆ get_almanac()

Glonass_Gnav_Almanac Glonass_Gnav_Navigation_Message::get_almanac ( uint32_t  satellite_slot_number) const

Returns a Glonass_Gnav_Almanac object filled with the latest navigation data received.

Parameters
satellite_slot_numberSlot number identifier for the satellite
Returns
Returns the Glonass_Gnav_Almanac object for the input slot number

◆ get_ephemeris()

Glonass_Gnav_Ephemeris Glonass_Gnav_Navigation_Message::get_ephemeris ( ) const
inline

Obtain a GLONASS GNAV SV Ephemeris class filled with current SV data.

Definition at line 70 of file glonass_gnav_navigation_message.h.

◆ get_frame_number()

uint32_t Glonass_Gnav_Navigation_Message::get_frame_number ( uint32_t  satellite_slot_number)

Computes the frame number being decoded given the satellite slot number.

Parameters
satellite_slot_number[in] Satellite slot number identifier
Returns
Frame number being decoded, 0 if operation was not successful.

◆ get_utc_model()

Glonass_Gnav_Utc_Model Glonass_Gnav_Navigation_Message::get_utc_model ( ) const
inline

Obtain a GLONASS GNAV UTC model parameters class filled with current SV data.

Definition at line 78 of file glonass_gnav_navigation_message.h.

◆ have_new_almanac()

bool Glonass_Gnav_Navigation_Message::have_new_almanac ( )

Returns true if new Glonass_Gnav_Almanac object has arrived.

◆ have_new_ephemeris()

bool Glonass_Gnav_Navigation_Message::have_new_ephemeris ( )

Returns true if a new Glonass_Gnav_Ephemeris object has arrived.

◆ have_new_utc_model()

bool Glonass_Gnav_Navigation_Message::have_new_utc_model ( )

Returns true if new Glonass_Gnav_Utc_Model object has arrived.

◆ string_decoder()

int32_t Glonass_Gnav_Navigation_Message::string_decoder ( const std::string &  frame_string)

Decodes the GLONASS GNAV string.

Parameters
frame_string[in] is the string message within the parsed frame
Returns
Returns the ID of the decoded string

The documentation for this class was generated from the following file: