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

Decode received NMEA messages and update global values from comm_vars.h and own_ship.h. More...

#include <comm_decoder.h>

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
 

Detailed Description

Decode received NMEA messages and update global values from comm_vars.h and own_ship.h.

Definition at line 58 of file comm_decoder.h.

Constructor & Destructor Documentation

◆ CommDecoder()

CommDecoder::CommDecoder ( )
inline

Definition at line 60 of file comm_decoder.h.

◆ ~CommDecoder()

CommDecoder::~CommDecoder ( )
inline

Definition at line 61 of file comm_decoder.h.

Member Function Documentation

◆ DecodeGGA()

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

Definition at line 229 of file comm_decoder.cpp.

◆ DecodeGLL()

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

Definition at line 194 of file comm_decoder.cpp.

◆ DecodeGSV()

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

Definition at line 215 of file comm_decoder.cpp.

◆ DecodeHDG()

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

Definition at line 148 of file comm_decoder.cpp.

◆ DecodeHDM()

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

Definition at line 122 of file comm_decoder.cpp.

◆ DecodeHDT()

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

Definition at line 135 of file comm_decoder.cpp.

◆ DecodePGN127250()

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

Definition at line 316 of file comm_decoder.cpp.

◆ DecodePGN129025()

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

Definition at line 338 of file comm_decoder.cpp.

◆ DecodePGN129026()

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

Definition at line 258 of file comm_decoder.cpp.

◆ DecodePGN129029()

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

Definition at line 274 of file comm_decoder.cpp.

◆ DecodePGN129540()

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

Definition at line 352 of file comm_decoder.cpp.

◆ DecodeRMC()

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

Definition at line 74 of file comm_decoder.cpp.

◆ DecodeSignalK()

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

Definition at line 367 of file comm_decoder.cpp.

◆ DecodeVTG()

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

Definition at line 174 of file comm_decoder.cpp.

◆ handleUpdate()

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

Definition at line 383 of file comm_decoder.cpp.

◆ ParsePosition()

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

Definition at line 45 of file comm_decoder.cpp.

◆ updateGnssSatellites()

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

Definition at line 466 of file comm_decoder.cpp.

◆ updateHeadingMagnetic()

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

Definition at line 485 of file comm_decoder.cpp.

◆ updateHeadingTrue()

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

Definition at line 479 of file comm_decoder.cpp.

◆ updateItem()

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

Definition at line 396 of file comm_decoder.cpp.

◆ updateMagneticVariance()

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

Definition at line 491 of file comm_decoder.cpp.

◆ updateNavigationCourseOverGround()

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

Definition at line 458 of file comm_decoder.cpp.

◆ updateNavigationPosition()

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

Definition at line 436 of file comm_decoder.cpp.

◆ updateNavigationSpeedOverGround()

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

Definition at line 450 of file comm_decoder.cpp.

Member Data Documentation

◆ m_NMEA0183

NMEA0183 CommDecoder::m_NMEA0183

Definition at line 75 of file comm_decoder.h.


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