27#ifndef _COMM_DECODER_H
28#define _COMM_DECODER_H
33#include "rapidjson/fwd.h"
36#include "comm_appmsg.h"
64 bool DecodeRMC(std::string s,
NavData& temp_data);
65 bool DecodeHDM(std::string s,
NavData& temp_data);
66 bool DecodeHDT(std::string s,
NavData& temp_data);
67 bool DecodeHDG(std::string s,
NavData& temp_data);
68 bool DecodeVTG(std::string s,
NavData& temp_data);
69 bool DecodeGSV(std::string s,
NavData& temp_data);
70 bool DecodeGGA(std::string s,
NavData& temp_data);
71 bool DecodeGLL(std::string s,
NavData& temp_data);
73 bool ParsePosition(
const LATLONG&
Position,
double& lat,
double& lon);
78 bool DecodePGN129025(std::vector<unsigned char> v,
NavData& temp_data);
79 bool DecodePGN129026(std::vector<unsigned char> v,
NavData& temp_data);
80 bool DecodePGN129029(std::vector<unsigned char> v,
NavData& temp_data);
81 bool DecodePGN127250(std::vector<unsigned char> v,
NavData& temp_data);
82 bool DecodePGN129540(std::vector<unsigned char> v,
NavData& temp_data);
85 bool DecodeSignalK(std::string s,
NavData& temp_data);
86 void handleUpdate(
const rapidjson::Value &update,
NavData& temp_data);
87 void updateItem(
const rapidjson::Value &item, wxString &sfixtime,
NavData& temp_data);
88 bool updateNavigationPosition(
const rapidjson::Value &value,
89 const wxString &sfixtime,
NavData& temp_data);
90 void updateNavigationSpeedOverGround(
const rapidjson::Value &value,
91 const wxString &sfixtime,
NavData& temp_data);
92 void updateNavigationCourseOverGround(
const rapidjson::Value &value,
93 const wxString &sfixtime,
NavData& temp_data);
94 void updateGnssSatellites(
const rapidjson::Value &value,
const wxString &sfixtime,
NavData& temp_data);
95 void updateHeadingTrue(
const rapidjson::Value &value,
const wxString &sfixtime,
NavData& temp_data);
96 void updateHeadingMagnetic(
const rapidjson::Value &value,
97 const wxString &sfixtime,
NavData& temp_data);
98 void updateMagneticVariance(
const rapidjson::Value &value,
99 const wxString &sfixtime,
NavData& temp_data);
Decode received NMEA messages and update global values from comm_vars.h and own_ship....