added struct for GPS-Data

added missing test-files
This commit is contained in:
2016-09-13 15:52:39 +02:00
parent a7cec2e946
commit fda01d223b
3 changed files with 6201 additions and 0 deletions

26
sensors/gps/GPSData.h Normal file
View File

@@ -0,0 +1,26 @@
#ifndef GPSDATA_H
#define GPSDATA_H
#include "../../data/Timestamp.h"
struct GPSData {
/** time this measurement was received (NOT the GPS-time) */
Timestamp tsReceived;
float lat; // deg
float lon; // deg
float alt; // m above sea-level
float accuracy; // m [might be NAN]
float speed; // m/s [might be NAN]
GPSData() : ts(), lat(NAN), lon(NAN), alt(NAN), accuracy(NAN), speed(NAN) {;}
GPSData(const Timestamp ts, const float lat, const float lon, const float alt) : ts(ts), lat(lat), lon(lon), alt(alt), accuracy(NAN), speed(NAN) {;}
GPSData(const Timestamp ts, const float lat, const float lon, const float alt, const float accuracy) : ts(ts), lat(lat), lon(lon), alt(alt), accuracy(accuracy), speed(NAN) {;}
};
#endif // GPSDATA_H