Qt Virtual Chart Table (QVCT)
|
Course data validity. More...
#include <data/CDataCourseValidity.hpp>
Public Member Functions | |
CDataCourseValidity () | |
virtual | ~CDataCourseValidity () |
void | setValidityBearing (double _fdTimeLastBearing, double _fdErrorBearing, bool _bInvalidBearing=false) |
Sets the bearing's validity parameters. More... | |
void | setValiditySpeed (double _fdTimeLastSpeed, double _fdErrorSpeed, bool _bInvalidSpeed=false) |
Sets the horizontal speed's validity parameters. More... | |
void | setValiditySpeedVertical (double _fdTimeLastSpeedVertical, double _fdErrorSpeedVertical, bool _bInvalidSpeedVertical=false) |
Sets the vertical speed's validity parameters. More... | |
double | getTimeLastBearing () const |
Returns the bearing's last-set time, in seconds from Unix epoch. More... | |
double | getErrorBearing () const |
Returns the bearing's error, in seconds. More... | |
bool | isInvalidBearing () const |
Returns the bearing's (forced) invalidity status. More... | |
bool | isValidBearing () const |
Returns the bearing's (global) validity status. More... | |
double | getTimeLastSpeed () const |
Returns the horizontal speed's last-set time, in seconds from Unix epoch. More... | |
double | getErrorSpeed () const |
Returns the horizontal speed's error, in seconds. More... | |
bool | isInvalidSpeed () const |
Returns the horizontal speed's (forced) invalidity status. More... | |
bool | isValidSpeed () const |
Returns the horizontal speed's (global) validity status. More... | |
double | getTimeLastSpeedVertical () const |
Returns the vertical speed's last-set time, in seconds from Unix epoch. More... | |
double | getErrorSpeedVertical () const |
Returns the vertical speed's error, in seconds. More... | |
bool | isInvalidSpeedVertical () const |
Returns the vertical speed's (forced) invalidity status. More... | |
bool | isValidSpeedVertical () const |
Returns the vertical speed's (global) validity status. More... | |
Private Attributes | |
double | fdTimeLastBearing |
Bearing last-set time, in seconds from Unix epoch. More... | |
double | fdErrorBearing |
Bearing error, in meters. More... | |
bool | bInvalidBearing |
Bearing (forced) invalidity status. More... | |
double | fdTimeLastSpeed |
Horizontal speed last-set time, in seconds from Unix epoch. More... | |
double | fdErrorSpeed |
Horizontal speed error, in meters per second. More... | |
bool | bInvalidSpeed |
Horizontal speed (forced) invalidity status. More... | |
double | fdTimeLastSpeedVertical |
Vertical speed last-set time, in seconds from Unix epoch. More... | |
double | fdErrorSpeedVertical |
Vertical speed error, in meters per second. More... | |
bool | bInvalidSpeedVertical |
Vertical speed (forced) invalidity status. More... | |
Additional Inherited Members | |
Static Public Attributes inherited from CDataValidity | |
static constexpr double | UNDEFINED_VALUE = -9999999 |
Protected Member Functions inherited from CDataValidity | |
CDataValidity () | |
virtual | ~CDataValidity () |
Course data validity.
This class gathers all parameters and methods that allow to manage the validity of course data.
Definition at line 32 of file CDataCourseValidity.hpp.
CDataCourseValidity::CDataCourseValidity | ( | ) |
Definition at line 31 of file CDataCourseValidity.cpp.
|
inlinevirtual |
Definition at line 77 of file CDataCourseValidity.hpp.
|
inline |
Sets the bearing's validity parameters.
Definition at line 87 of file CDataCourseValidity.hpp.
|
inline |
Sets the horizontal speed's validity parameters.
Definition at line 90 of file CDataCourseValidity.hpp.
|
inline |
Sets the vertical speed's validity parameters.
Definition at line 93 of file CDataCourseValidity.hpp.
|
inline |
Returns the bearing's last-set time, in seconds from Unix epoch.
Definition at line 99 of file CDataCourseValidity.hpp.
|
inline |
Returns the bearing's error, in seconds.
Definition at line 101 of file CDataCourseValidity.hpp.
|
inline |
Returns the bearing's (forced) invalidity status.
Definition at line 103 of file CDataCourseValidity.hpp.
bool CDataCourseValidity::isValidBearing | ( | ) | const |
Returns the bearing's (global) validity status.
NOTE: this take into account the bearing's last-set time and error, based on application settings
Definition at line 62 of file CDataCourseValidity.cpp.
|
inline |
Returns the horizontal speed's last-set time, in seconds from Unix epoch.
Definition at line 109 of file CDataCourseValidity.hpp.
|
inline |
Returns the horizontal speed's error, in seconds.
Definition at line 111 of file CDataCourseValidity.hpp.
|
inline |
Returns the horizontal speed's (forced) invalidity status.
Definition at line 113 of file CDataCourseValidity.hpp.
bool CDataCourseValidity::isValidSpeed | ( | ) | const |
Returns the horizontal speed's (global) validity status.
NOTE: this take into account the horizontal speed's last-set time and error, based on application settings
Definition at line 70 of file CDataCourseValidity.cpp.
|
inline |
Returns the vertical speed's last-set time, in seconds from Unix epoch.
Definition at line 119 of file CDataCourseValidity.hpp.
|
inline |
Returns the vertical speed's error, in seconds.
Definition at line 121 of file CDataCourseValidity.hpp.
|
inline |
Returns the vertical speed's (forced) invalidity status.
Definition at line 123 of file CDataCourseValidity.hpp.
bool CDataCourseValidity::isValidSpeedVertical | ( | ) | const |
Returns the vertical speed's (global) validity status.
NOTE: this take into account the vertical speed's last-set time and error, based on application settings
Definition at line 78 of file CDataCourseValidity.cpp.
|
private |
Bearing last-set time, in seconds from Unix epoch.
Definition at line 42 of file CDataCourseValidity.hpp.
|
private |
Bearing error, in meters.
Definition at line 45 of file CDataCourseValidity.hpp.
|
private |
Bearing (forced) invalidity status.
Definition at line 48 of file CDataCourseValidity.hpp.
|
private |
Horizontal speed last-set time, in seconds from Unix epoch.
Definition at line 52 of file CDataCourseValidity.hpp.
|
private |
Horizontal speed error, in meters per second.
Definition at line 55 of file CDataCourseValidity.hpp.
|
private |
Horizontal speed (forced) invalidity status.
Definition at line 58 of file CDataCourseValidity.hpp.
|
private |
Vertical speed last-set time, in seconds from Unix epoch.
Definition at line 62 of file CDataCourseValidity.hpp.
|
private |
Vertical speed error, in meters per second.
Definition at line 65 of file CDataCourseValidity.hpp.
|
private |
Vertical speed (forced) invalidity status.
Definition at line 68 of file CDataCourseValidity.hpp.