19 #ifndef QVCT_CDEVICEDATAFIX_HPP
20 #define QVCT_CDEVICEDATAFIX_HPP
115 void setFix(
const CDeviceDataFix& _roDeviceDataFix,
bool _bCopyTime =
true,
bool _bCopyPosition =
true,
bool _bCopyCourse =
true,
bool _bCopyDop =
true );
(Geographical) Course data [bearing, horizontal/vertical speeds]
(Geographical) Position data [long,lat,elev]
static constexpr double UNDEFINED_VALUE
Dilution-of-Precision (DOP) data.
Fix data [source,time,position,course,DOPs,...].
int getSourcesSeen() const
Returns the seen sources count (most likely satellites)
QString getTypeString() const
Returns the fix type as a human-friendly string.
double fdErrorSpeedVertical
Vertical speed error, in meters per second.
CDeviceDataFix(const QString &_rqsSourceName, int _eType=FIX_UNDEFINED, double _fdTime=CDataValidity::UNDEFINED_VALUE)
double fdErrorTime
Time error, in seconds.
int iSourcesSeen
Seen sources count (most likely satellites)
double fdErrorBearing
Bearing error, in degrees.
double getErrorTime() const
Returns the time error, in seconds.
double getErrorVertical() const
Returns the vertical position error, in meters.
void setText(const QString &_rqsText)
Sets the additional textual data string.
void setErrorPosition(double _fdErrorHorizontal, double _fdErrorVertical=CDataValidity::UNDEFINED_VALUE)
Sets the (horizontal and vertical) position error, in meters.
QString qsText
Additional textual data string.
void setFix(const CDeviceDataFix &_roDeviceDataFix, bool _bCopyTime=true, bool _bCopyPosition=true, bool _bCopyCourse=true, bool _bCopyDop=true)
Sets (copy) the fix data from another instance.
EType
Fix type (2D, 3D, no fix)
QString getText() const
Returns the additional textual data string.
void setErrorSpeed(double _fdErrorSpeed, double _fdErrorSpeedVertical=CDataValidity::UNDEFINED_VALUE)
Sets the (horizontal and vertical) speed error, in meters per second.
bool bCourseFromPosition
Use position to compute course.
int getType() const
Returns the fix type.
virtual ~CDeviceDataFix()
void setErrorBearing(double _fdErrorBearing)
Sets the bearing error, in degrees.
void setType(int _eType)
Sets the fix type.
bool isCourseFromPosition() const
Returns whether position is used to compute course.
double getErrorSpeed() const
Returns the horizontal speed error, in meters per second.
int iSourcesUsed
Used sources count (most likely satellites)
double getErrorHorizontal() const
Returns the horizontal position error, in meters.
void setErrorTime(double _fdErrorTime)
Sets the time error, in seconds.
void setSources(int _iSourcesSeen, int _iSourcesUsed)
Sets the sources count (most likely satellites)
double fdErrorVertical
Vertical position error, in meters.
double getErrorBearing() const
Returns the bearing error, in degrees.
double getErrorSpeedVertical() const
Returns the vertical speed error, in meters per second.
double fdErrorHorizontal
Horizontal position error, in meters.
void setCourseFromPosition(bool _bCourseFromPosition)
Sets whether to use position to compute course.
double fdErrorSpeed
Horizontal speed error, in meters per second.
int getSourcesUsed() const
Returns the used sources count (most likely satellites)
Data source details [name,type].