17#include "uart/protocol/packet.hpp"
39 [[nodiscard]]
static std::string
type()
46 [[nodiscard]] std::string
getType()
const override {
return type(); }
59 desc.emplace_back(
"Status [bits]");
60 desc.emplace_back(
"Sequence Number [-]");
76 [[nodiscard]] std::optional<double>
getValueAt(
size_t idx)
const override
83 return static_cast<double>(
status.to_ulong());
94 uart::protocol::Packet
raw;
#define INS_ASSERT(_EXPR)
Assert function wrapper.
Parent Class for all IMU Observations.
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.
std::optional< double > getValueAt(size_t idx) const override
Get the value at the index.
ImuObs(const ImuPos &imuPos)
Constructor.
const ImuPos & imuPos
Position and rotation information for conversion from platform to body frame.
uart::protocol::Packet raw
Complete message raw binary data including header and checksum.
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.
std::string getType() const override
Returns the type of the data class.
static constexpr size_t GetStaticDescriptorCount()
Get the amount of descriptors.
static std::vector< std::string > GetStaticDataDescriptors()
Returns a vector of data descriptors.
uint8_t sequenceNumber
Increments for each message and resets to 0 after 127.
KvhObs(const ImuPos &imuPos, uart::protocol::Packet &packet)
Constructor.
std::bitset< 8 > status
Status Byte.
std::vector< std::string > staticDataDescriptors() const override
Returns a vector of data descriptors.
size_t staticDescriptorCount() const override
Get the amount of descriptors.
std::optional< double > getValueAt(size_t idx) const override
Get the value at the index.
KvhObs(const ImuPos &imuPos)
Constructor.