![]() |
0.4.1
|
Kvh Observation storage Class. More...
Public Member Functions | |
std::string | getType () const override |
Returns the type of the data class. | |
std::optional< double > | getValueAt (size_t idx) const override |
Get the value at the index. | |
KvhObs (const ImuPos &imuPos) | |
Constructor. | |
KvhObs (const ImuPos &imuPos, uart::protocol::Packet &packet) | |
Constructor. | |
std::vector< std::string > | staticDataDescriptors () const override |
Returns a vector of data descriptors. | |
size_t | staticDescriptorCount () const override |
Get the amount of descriptors. | |
![]() | |
ImuObs (const ImuPos &imuPos) | |
Constructor. | |
bool | setValueAt (size_t idx, double value) override |
Set the value at the index. | |
![]() | |
void | addEvent (const std::string &text) |
Adds the event to the list. | |
virtual std::vector< std::string > | dynamicDataDescriptors () const |
Returns a vector of data descriptors for the dynamic data. | |
const std::vector< std::string > & | events () const |
Returns a vector of string events associated with this data. | |
virtual std::vector< std::pair< std::string, double > > | getDynamicData () const |
Returns a vector of data descriptors and values for the dynamic data. | |
virtual std::optional< double > | getDynamicDataAt (const std::string &) const |
Get the value for the descriptor. | |
double | getValueAtOrNaN (size_t idx) const |
Get the value at the index or NaN if not in the observation. | |
virtual void | guiTooltip (bool detailView, bool firstOpen, const char *displayName, const char *id, int *rootWindow) const |
Shows a GUI tooltip to look into details of the observation. | |
virtual bool | hasTooltip () const |
Return whether this data has a tooltip. | |
NodeData ()=default | |
Default constructor. | |
NodeData (const NodeData &)=default | |
Copy constructor. | |
NodeData (NodeData &&)=default | |
Move constructor. | |
NodeData & | operator= (const NodeData &)=default |
Copy assignment operator. | |
NodeData & | operator= (NodeData &&)=default |
Move assignment operator. | |
virtual bool | setDynamicDataAt (const std::string &, double) |
Set the value for the descriptor. | |
virtual | ~NodeData ()=default |
Destructor. | |
Static Public Member Functions | |
static std::vector< std::string > | GetStaticDataDescriptors () |
Returns a vector of data descriptors. | |
static constexpr size_t | GetStaticDescriptorCount () |
Get the amount of descriptors. | |
static std::vector< std::string > | parentTypes () |
Returns the parent types of the data class. | |
static std::string | type () |
Returns the type of the data class. | |
![]() | |
static std::vector< std::string > | GetStaticDataDescriptors () |
Returns a vector of data descriptors. | |
static constexpr size_t | GetStaticDescriptorCount () |
Get the amount of descriptors. | |
static std::vector< std::string > | parentTypes () |
Returns the parent types of the data class. | |
static std::string | type () |
Returns the type of the data class. | |
![]() | |
static std::vector< std::string > | GetStaticDataDescriptors () |
Returns a vector of data descriptors. | |
static constexpr size_t | GetStaticDescriptorCount () |
Get the amount of descriptors. | |
static std::vector< std::string > | parentTypes () |
Returns the parent types of the data class. | |
static std::string | type () |
Returns the type of the data class. | |
Data Fields | |
uart::protocol::Packet | raw |
Complete message raw binary data including header and checksum. | |
uint8_t | sequenceNumber |
Increments for each message and resets to 0 after 127. | |
std::bitset< 8 > | status |
Status Byte. | |
![]() | |
const ImuPos & | imuPos |
Position and rotation information for conversion from platform to body frame. | |
Eigen::Vector3d | p_acceleration |
The IMU acceleration measured in units of [m/s^2], given in the platform frame. | |
Eigen::Vector3d | p_angularRate |
The IMU angular rate measured in units of [rad/s], given in the platform frame. | |
std::optional< Eigen::Vector3d > | p_magneticField |
The IMU magnetic field measured in units of [Gauss], given in the platform frame. | |
std::optional< double > | temperature |
The IMU temperature measured in units of [Celsius]. | |
![]() | |
InsTime | insTime |
Time at which the message was received. | |
Additional Inherited Members | |
![]() | |
std::vector< std::string > | _events |
List of events. | |
Kvh Observation storage Class.
Definition at line 23 of file KvhObs.hpp.
|
inline |
Constructor.
[in] | imuPos | Reference to the position and rotation info of the Imu |
[in] | packet | The packet to copy into the raw data |
Definition at line 29 of file KvhObs.hpp.
|
inlineexplicit |
Constructor.
[in] | imuPos | Reference to the position and rotation info of the Imu |
Definition at line 34 of file KvhObs.hpp.
|
inlinestaticnodiscard |
Returns a vector of data descriptors.
Definition at line 56 of file KvhObs.hpp.
|
inlinestaticnodiscardconstexpr |
Get the amount of descriptors.
Definition at line 65 of file KvhObs.hpp.
|
inlinenodiscardoverridevirtual |
Returns the type of the data class.
Reimplemented from NAV::ImuObs.
Definition at line 46 of file KvhObs.hpp.
|
inlinenodiscardoverridevirtual |
Get the value at the index.
idx | Index corresponding to data descriptor order |
Reimplemented from NAV::ImuObs.
Definition at line 76 of file KvhObs.hpp.
|
inlinestaticnodiscard |
Returns the parent types of the data class.
Definition at line 50 of file KvhObs.hpp.
|
inlinenodiscardoverridevirtual |
Returns a vector of data descriptors.
Reimplemented from NAV::ImuObs.
Definition at line 68 of file KvhObs.hpp.
|
inlinenodiscardoverridevirtual |
Get the amount of descriptors.
Reimplemented from NAV::ImuObs.
Definition at line 71 of file KvhObs.hpp.
|
inlinestaticnodiscard |
uart::protocol::Packet NAV::KvhObs::raw |
Complete message raw binary data including header and checksum.
Definition at line 94 of file KvhObs.hpp.
uint8_t NAV::KvhObs::sequenceNumber |
Increments for each message and resets to 0 after 127.
Definition at line 110 of file KvhObs.hpp.
std::bitset<8> NAV::KvhObs::status |
Status Byte.
Bit | Function | Notes 0 | Gyro X status | 1 = Valid data, 0 = Invalid data 1 | Gyro Y status | 1 = Valid data, 0 = Invalid data 2 | Gyro Z status | 1 = Valid data, 0 = Invalid data 3 | Reserved | Always 0 4 | Accelerometer X status | 1 = Valid data, 0 = Invalid data 5 | Accelerometer Y status | 1 = Valid data, 0 = Invalid data 6 | Accelerometer Z status | 1 = Valid data, 0 = Invalid data 7 | Reserved | Always 0
Definition at line 107 of file KvhObs.hpp.