OpenCPN Partial API docs
Loading...
Searching...
No Matches
CommDecoder Class Reference

Public Member Functions

bool DecodeRMC (std::string s, NavData &temp_data)
bool DecodeHDM (std::string s, NavData &temp_data)
bool DecodeTHS (std::string s, NavData &temp_data)
bool DecodeHDT (std::string s, NavData &temp_data)
bool DecodeHDG (std::string s, NavData &temp_data)
bool DecodeHVD (std::string s, NavData &temp_data)
bool DecodeVTG (std::string s, NavData &temp_data)
bool DecodeGSV (std::string s, NavData &temp_data)
bool DecodeGGA (std::string s, NavData &temp_data)
bool DecodeGLL (std::string s, NavData &temp_data)
bool ParsePosition (const LATLONG &Position, double &lat, double &lon)
bool DecodePGN129025 (std::vector< unsigned char > v, NavData &temp_data)
bool DecodePGN129026 (std::vector< unsigned char > v, NavData &temp_data)
bool DecodePGN129029 (std::vector< unsigned char > v, NavData &temp_data)
bool DecodePGN127250 (std::vector< unsigned char > v, NavData &temp_data)
bool DecodePGN127258 (std::vector< unsigned char > v, NavData &temp_data)
bool DecodePGN129540 (std::vector< unsigned char > v, NavData &temp_data)
bool DecodeSignalK (std::string s, NavData &temp_data)
void handleUpdate (const rapidjson::Value &update, NavData &temp_data)
void updateItem (const rapidjson::Value &item, wxString &sfixtime, NavData &temp_data)
bool updateNavigationPosition (const rapidjson::Value &value, const wxString &sfixtime, NavData &temp_data)
void updateNavigationSpeedOverGround (const rapidjson::Value &value, const wxString &sfixtime, NavData &temp_data)
void updateNavigationCourseOverGround (const rapidjson::Value &value, const wxString &sfixtime, NavData &temp_data)
void updateGnssSatellites (const rapidjson::Value &value, const wxString &sfixtime, NavData &temp_data)
void updateHeadingTrue (const rapidjson::Value &value, const wxString &sfixtime, NavData &temp_data)
void updateHeadingMagnetic (const rapidjson::Value &value, const wxString &sfixtime, NavData &temp_data)
void updateMagneticVariance (const rapidjson::Value &value, const wxString &sfixtime, NavData &temp_data)

Public Attributes

NMEA0183 m_NMEA0183
std::string src_string
std::unordered_map< std::string, int > GNSS_quality_map

Detailed Description

Definition at line 54 of file comm_decoder.h.

Constructor & Destructor Documentation

◆ CommDecoder()

CommDecoder::CommDecoder ( )
inline

Definition at line 56 of file comm_decoder.h.

◆ ~CommDecoder()

CommDecoder::~CommDecoder ( )
inline

Definition at line 57 of file comm_decoder.h.

Member Function Documentation

◆ DecodeGGA()

bool CommDecoder::DecodeGGA ( std::string s,
NavData & temp_data )

Definition at line 278 of file comm_decoder.cpp.

◆ DecodeGLL()

bool CommDecoder::DecodeGLL ( std::string s,
NavData & temp_data )

Definition at line 243 of file comm_decoder.cpp.

◆ DecodeGSV()

bool CommDecoder::DecodeGSV ( std::string s,
NavData & temp_data )

Definition at line 264 of file comm_decoder.cpp.

◆ DecodeHDG()

bool CommDecoder::DecodeHDG ( std::string s,
NavData & temp_data )

Definition at line 158 of file comm_decoder.cpp.

◆ DecodeHDM()

bool CommDecoder::DecodeHDM ( std::string s,
NavData & temp_data )

Definition at line 117 of file comm_decoder.cpp.

◆ DecodeHDT()

bool CommDecoder::DecodeHDT ( std::string s,
NavData & temp_data )

Definition at line 145 of file comm_decoder.cpp.

◆ DecodeHVD()

bool CommDecoder::DecodeHVD ( std::string s,
NavData & temp_data )

Definition at line 184 of file comm_decoder.cpp.

◆ DecodePGN127250()

bool CommDecoder::DecodePGN127250 ( std::vector< unsigned char > v,
NavData & temp_data )

Definition at line 361 of file comm_decoder.cpp.

◆ DecodePGN127258()

bool CommDecoder::DecodePGN127258 ( std::vector< unsigned char > v,
NavData & temp_data )

Definition at line 383 of file comm_decoder.cpp.

◆ DecodePGN129025()

bool CommDecoder::DecodePGN129025 ( std::vector< unsigned char > v,
NavData & temp_data )

Definition at line 401 of file comm_decoder.cpp.

◆ DecodePGN129026()

bool CommDecoder::DecodePGN129026 ( std::vector< unsigned char > v,
NavData & temp_data )

Definition at line 306 of file comm_decoder.cpp.

◆ DecodePGN129029()

bool CommDecoder::DecodePGN129029 ( std::vector< unsigned char > v,
NavData & temp_data )

Definition at line 322 of file comm_decoder.cpp.

◆ DecodePGN129540()

bool CommDecoder::DecodePGN129540 ( std::vector< unsigned char > v,
NavData & temp_data )

Definition at line 414 of file comm_decoder.cpp.

◆ DecodeRMC()

bool CommDecoder::DecodeRMC ( std::string s,
NavData & temp_data )

Definition at line 71 of file comm_decoder.cpp.

◆ DecodeSignalK()

bool CommDecoder::DecodeSignalK ( std::string s,
NavData & temp_data )

Definition at line 430 of file comm_decoder.cpp.

◆ DecodeTHS()

bool CommDecoder::DecodeTHS ( std::string s,
NavData & temp_data )

Definition at line 130 of file comm_decoder.cpp.

◆ DecodeVTG()

bool CommDecoder::DecodeVTG ( std::string s,
NavData & temp_data )

Definition at line 208 of file comm_decoder.cpp.

◆ handleUpdate()

void CommDecoder::handleUpdate ( const rapidjson::Value & update,
NavData & temp_data )

Definition at line 446 of file comm_decoder.cpp.

◆ ParsePosition()

bool CommDecoder::ParsePosition ( const LATLONG & Position,
double & lat,
double & lon )

Definition at line 42 of file comm_decoder.cpp.

◆ updateGnssSatellites()

void CommDecoder::updateGnssSatellites ( const rapidjson::Value & value,
const wxString & sfixtime,
NavData & temp_data )

Definition at line 571 of file comm_decoder.cpp.

◆ updateHeadingMagnetic()

void CommDecoder::updateHeadingMagnetic ( const rapidjson::Value & value,
const wxString & sfixtime,
NavData & temp_data )

Definition at line 595 of file comm_decoder.cpp.

◆ updateHeadingTrue()

void CommDecoder::updateHeadingTrue ( const rapidjson::Value & value,
const wxString & sfixtime,
NavData & temp_data )

Definition at line 589 of file comm_decoder.cpp.

◆ updateItem()

void CommDecoder::updateItem ( const rapidjson::Value & item,
wxString & sfixtime,
NavData & temp_data )

Definition at line 471 of file comm_decoder.cpp.

◆ updateMagneticVariance()

void CommDecoder::updateMagneticVariance ( const rapidjson::Value & value,
const wxString & sfixtime,
NavData & temp_data )

Definition at line 601 of file comm_decoder.cpp.

◆ updateNavigationCourseOverGround()

void CommDecoder::updateNavigationCourseOverGround ( const rapidjson::Value & value,
const wxString & sfixtime,
NavData & temp_data )

Definition at line 562 of file comm_decoder.cpp.

◆ updateNavigationPosition()

bool CommDecoder::updateNavigationPosition ( const rapidjson::Value & value,
const wxString & sfixtime,
NavData & temp_data )

Definition at line 539 of file comm_decoder.cpp.

◆ updateNavigationSpeedOverGround()

void CommDecoder::updateNavigationSpeedOverGround ( const rapidjson::Value & value,
const wxString & sfixtime,
NavData & temp_data )

Definition at line 553 of file comm_decoder.cpp.

Member Data Documentation

◆ GNSS_quality_map

std::unordered_map<std::string, int> CommDecoder::GNSS_quality_map

Definition at line 106 of file comm_decoder.h.

◆ m_NMEA0183

NMEA0183 CommDecoder::m_NMEA0183

Definition at line 73 of file comm_decoder.h.

◆ src_string

std::string CommDecoder::src_string

Definition at line 105 of file comm_decoder.h.


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