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 DecodeHDT (std::string s, NavData &temp_data)
 
bool DecodeHDG (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 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 55 of file comm_decoder.h.

Constructor & Destructor Documentation

◆ CommDecoder()

CommDecoder::CommDecoder ( )
inline

Definition at line 57 of file comm_decoder.h.

◆ ~CommDecoder()

CommDecoder::~CommDecoder ( )
inline

Definition at line 58 of file comm_decoder.h.

Member Function Documentation

◆ DecodeGGA()

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

Definition at line 245 of file comm_decoder.cpp.

◆ DecodeGLL()

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

Definition at line 210 of file comm_decoder.cpp.

◆ DecodeGSV()

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

Definition at line 231 of file comm_decoder.cpp.

◆ DecodeHDG()

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

Definition at line 147 of file comm_decoder.cpp.

◆ DecodeHDM()

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

Definition at line 121 of file comm_decoder.cpp.

◆ DecodeHDT()

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

Definition at line 134 of file comm_decoder.cpp.

◆ DecodePGN127250()

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

Definition at line 328 of file comm_decoder.cpp.

◆ DecodePGN129025()

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

Definition at line 350 of file comm_decoder.cpp.

◆ DecodePGN129026()

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

Definition at line 273 of file comm_decoder.cpp.

◆ DecodePGN129029()

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

Definition at line 289 of file comm_decoder.cpp.

◆ DecodePGN129540()

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

Definition at line 363 of file comm_decoder.cpp.

◆ DecodeRMC()

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

Definition at line 73 of file comm_decoder.cpp.

◆ DecodeSignalK()

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

Definition at line 379 of file comm_decoder.cpp.

◆ DecodeVTG()

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

Definition at line 173 of file comm_decoder.cpp.

◆ handleUpdate()

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

Definition at line 395 of file comm_decoder.cpp.

◆ ParsePosition()

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

Definition at line 44 of file comm_decoder.cpp.

◆ updateGnssSatellites()

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

Definition at line 514 of file comm_decoder.cpp.

◆ updateHeadingMagnetic()

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

Definition at line 538 of file comm_decoder.cpp.

◆ updateHeadingTrue()

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

Definition at line 532 of file comm_decoder.cpp.

◆ updateItem()

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

Definition at line 414 of file comm_decoder.cpp.

◆ updateMagneticVariance()

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

Definition at line 544 of file comm_decoder.cpp.

◆ updateNavigationCourseOverGround()

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

Definition at line 505 of file comm_decoder.cpp.

◆ updateNavigationPosition()

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

Definition at line 482 of file comm_decoder.cpp.

◆ updateNavigationSpeedOverGround()

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

Definition at line 496 of file comm_decoder.cpp.

Member Data Documentation

◆ GNSS_quality_map

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

Definition at line 104 of file comm_decoder.h.

◆ m_NMEA0183

NMEA0183 CommDecoder::m_NMEA0183

Definition at line 72 of file comm_decoder.h.

◆ src_string

std::string CommDecoder::src_string

Definition at line 103 of file comm_decoder.h.


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