Petit Poucet
 
Loading...
Searching...
No Matches
Utils.hh
Go to the documentation of this file.
1#pragma once
2
3#include <math.h>
4#include <iostream>
5#include <fstream>
6#include <optional>
7#include <vector>
8#include <sstream>
9
14{
20 void ConvertNMEAToWGS84Decimal(long double &coordinate);
21
27 void ConvertNMEAToWGS84Degrees(long double &coordinate);
28
43 void ConvertNMEAToWGS84Decimal(double longitude,
44 double latitude,
45 double altitude,
46 double &newLongitudeDegrees,
47 double &newLongitudeMinutes,
48 double &newLongitudeSeconds,
49 double &newLatitudeDegrees,
50 double &newLatitudeMinutes,
51 double &newLatitudeSeconds,
52 double &newAltitude);
53
62 void ConvertDecimalWGS84ToUTM(double longitude,
63 double latitude,
64 double &utmX,
65 double &utmY);
66}
67
72{
74 {
75 // Constructors
76 public:
79
80 // Methods
81 public:
89 void ReadConfigFile(std::string configFileName, std::string *casterName, std::string *serialPortName, std::vector<std::string> *labels);
90
91 };
92}
void ReadConfigFile(std::string configFileName, std::string *casterName, std::string *serialPortName, std::vector< std::string > *labels)
Reads a configuration files and attibutes values to a caster name and a serial port name.
Definition Utils.cc:68
Namespace for utilities.
Definition Utils.cc:4
void ConvertNMEAToWGS84Degrees(long double &coordinate)
converts the raw NMEA coordinates (DDMM.MMMMMM) to degrees format (DDMMSS.SSSSS)
Definition Utils.cc:11
void ConvertDecimalWGS84ToUTM(double longitude, double latitude, double &utmX, double &utmY)
converts decimal WGS84 coordinates to UTM coordinates in meters
Definition Utils.cc:17
void ConvertNMEAToWGS84Decimal(long double &coordinate)
converts the raw NMEA coordinates (DDMM.MMMMMM) to decimal format (DD.DDDDDDDDD)
Definition Utils.cc:5
Namespace for file manipulation utilities.
Definition Utils.cc:67