Nix (Dev) 3.5.10
dev - 3.5.10 - 1af9301
Loading...
Searching...
No Matches
functions.hpp File Reference
#include "comms/nmea/enums.hpp"
#include "core/CStringTools.hpp"
#include "core/defines.hpp"
#include "core/parsers.hpp"
#include <sstream>
#include <vector>
Include dependency graph for functions.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  iv
 
namespace  iv::comms
 
namespace  iv::comms::nmea0183
 

Macros

#define MINUTE_LENGTH   8
 
#define KNOTS_TO_MPS   0.514444444
 

Functions

std::string iv::comms::nmea0183::nmeaChecksum (const std::string &completeMsg)
 Compute the checksum of a message for NMEA0183.
 
double iv::comms::nmea0183::degreesToDecimal (const int32_t degrees, const double minutes, const int32_t seconds=0)
 Converts degress, minutes and seconds to decimal geometric degrees.
 
std::vector< std::string > iv::comms::nmea0183::splitStringBy (const std::string &sentence, const char delimiter)
 
bool iv::comms::nmea0183::getCoordinates (std::string array, double &decimalDegrees)
 Converts a string with the format "D*MM.MMMM" to decimal degrees.
 
std::optional< bool > iv::comms::nmea0183::nmea0183FieldToBoolean (std::string_view data)
 Converts a NMEA0183 field to a boolean.
 
std::optional< uint16_t > iv::comms::nmea0183::nmea0183FieldToInteger (std::string_view data)
 Converts a NMEA0183 field to an integer.
 
std::optional< float > iv::comms::nmea0183::nmea0183FieldToFloat (std::string_view data)
 Converts a NMEA0183 field to a float.
 
std::optional< std::string > iv::comms::nmea0183::nmea0183FieldToTime (std::string_view data)
 Converts a NMEA0183 time field to a string representation of day time.
 
std::optional< iv::comms::nmea0183::Poleiv::comms::nmea0183::nmeaField0183ToPole (std::string_view data)
 Converts a NMEA0183 field to a Pole.
 
std::optional< iv::types::channelValueiv::comms::nmea0183::processValue (std::string_view stringValue, iv::comms::nmea0183::eFieldType nmeaFieldType)
 parses the value of a NMEA0183 field according to it's type
 

Macro Definition Documentation

◆ KNOTS_TO_MPS

#define KNOTS_TO_MPS   0.514444444

◆ MINUTE_LENGTH

#define MINUTE_LENGTH   8