17#include "uart/protocol/packet.hpp"
39 [[nodiscard]]
static std::string
type()
55 desc.emplace_back(
"Status [bits]");
56 desc.emplace_back(
"Sequence Number [-]");
72 [[nodiscard]] std::optional<double>
getValueAt(
size_t idx)
const override
99 return static_cast<double>(
status.to_ulong());
110 uart::protocol::Packet
raw;
#define INS_ASSERT(_EXPR)
Assert function wrapper.
Definition Assert.h:19
Parent Class for all IMU Observations.
IMU Observation storage class.
Definition ImuObs.hpp:25
static std::string type()
Returns the type of the data class.
Definition ImuObs.hpp:34
static std::vector< std::string > GetStaticDataDescriptors()
Returns a vector of data descriptors.
Definition ImuObs.hpp:47
std::optional< double > getValueAt(size_t idx) const override
Get the value at the index.
Definition ImuObs.hpp:76
const ImuPos & imuPos
Position and rotation information for conversion from platform to body frame.
Definition ImuObs.hpp:115
IMU Position.
Definition ImuPos.hpp:26
Kvh Observation storage Class.
Definition KvhObs.hpp:24
uart::protocol::Packet raw
Complete message raw binary data including header and checksum.
Definition KvhObs.hpp:110
static std::vector< std::string > parentTypes()
Returns the parent types of the data class.
Definition KvhObs.hpp:46
static std::string type()
Returns the type of the data class.
Definition KvhObs.hpp:39
static constexpr size_t GetStaticDescriptorCount()
Get the amount of descriptors.
Definition KvhObs.hpp:61
static std::vector< std::string > GetStaticDataDescriptors()
Returns a vector of data descriptors.
Definition KvhObs.hpp:52
uint8_t sequenceNumber
Increments for each message and resets to 0 after 127.
Definition KvhObs.hpp:126
KvhObs(const ImuPos &imuPos, uart::protocol::Packet &packet)
Constructor.
Definition KvhObs.hpp:29
std::bitset< 8 > status
Status Byte.
Definition KvhObs.hpp:123
std::vector< std::string > staticDataDescriptors() const override
Returns a vector of data descriptors.
Definition KvhObs.hpp:64
size_t staticDescriptorCount() const override
Get the amount of descriptors.
Definition KvhObs.hpp:67
std::optional< double > getValueAt(size_t idx) const override
Get the value at the index.
Definition KvhObs.hpp:72
KvhObs(const ImuPos &imuPos)
Constructor.
Definition KvhObs.hpp:34