35 std::string GetDescription()
const {
return "gps data"; }
36 size_t GetSize()
const {
38 size += 2*doubleType.GetSize();
39 size += floatType.GetSize();
40 size += UInt8Type.GetSize();
41 size += UInt8Type.GetSize();
42 size += 5*floatType.GetSize();
43 size += 3*floatType.GetSize();
95 GpsData(
const Object *parent, std::string name =
"",
int n = 1);
124 void GetLla(
double &latitude,
double &longitude,
125 float &altitude)
const;
137 void SetLla(
double latitude,
double longitude,
151 void GetEnu(
float &east,
float &north,
164 void SetEnu(
float east,
float north,
176 void GetVelocity(
float &eastVelocity,
float &northVelocity)
const;
187 void SetVelocity(
float eastVelocity,
float northVelocity);
231 void GetDop(
float &pDop,
float &hDop,
float &vDop)
const;
243 void SetDop(
float pDop,
float hDop,
float vDop);
245 Type
const &GetDataType()
const {
return dataType; }
258 void Queue(
char **dst,
const void *src,
size_t size)
const;
260 double latitude,longitude;
262 uint8_t numberOfSatellites;
264 float east,north,up,eastVelocity,northVelocity,pDop,hDop,vDop;
Abstract class for data types.
Definition: io_data.h:94
void GetDop(float &pDop, float &hDop, float &vDop) const
Get dilution of precision.
Base class for all Framework's classes.
Definition: Object.h:83
void GetEnu(float &east, float &north, float &up) const
Get east, north and up.
namespace of the flair Framework
Definition: Ahrs.h:19
GpsData(const Object *parent, std::string name="", int n=1)
Constructor.
Class defining gps datas.
Definition: GpsData.h:30
void RawRead(char *dst) const
Raw read datas.
void SetNumberOfSatellites(uint8_t numberOfSatellites)
Set number of satellites.
Abstract class for data types.
void SetEnu(float east, float north, float up)
Set east, north and up.
IODataElement * Element(PlotableData_t data_type) const
Element.
void SetFixQuality(FixQuality_t fixQuality)
Set fix quality.
uint8_t GetNumberOfSatellites(void) const
Get number of satellites.
PlotableData_t
Datas wich can be plotted in a DataPlot1D.
Definition: GpsData.h:54
void GetVelocity(float &eastVelocity, float &northVelocity) const
Get east and north velocities.
FixQuality_t
Fix qualty indicators.
Definition: GpsData.h:74
void SetLla(double latitude, double longitude, float altitude)
Set latitude, longitude and altitude.
void SetVelocity(float eastVelocity, float northVelocity)
Set east and north velocities.
Abstract class for accessing an element of an io_data.
Definition: IODataElement.h:27
FixQuality_t GetFixQuality(void) const
Get fix quality.
void SetDop(float pDop, float hDop, float vDop)
Set dilution of precision.
void GetLla(double &latitude, double &longitude, float &altitude) const
Get latitude, longitude and altitude.