added struct for GPS-Data
added missing test-files
This commit is contained in:
26
sensors/gps/GPSData.h
Normal file
26
sensors/gps/GPSData.h
Normal 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
|
||||
Reference in New Issue
Block a user