Fixposition SDK 0.0.0-heads/main-0-g90a51ff
Collection of c++ libraries and apps for use with Fixposition products
Loading...
Searching...
No Matches
fpsdk::common::parser::fpa::FpaImuPayload Struct Referenceabstract

FP_A-...IMU (version 1) messages payload. More...

#include <fpa.hpp>

Inheritance diagram for fpsdk::common::parser::fpa::FpaImuPayload:
Collaboration diagram for fpsdk::common::parser::fpa::FpaImuPayload:

Public Types

enum class  Which { UNSPECIFIED , RAWIMU , CORRIMU }
 Data from which FP_A-...IMU is stored. More...
 

Public Member Functions

virtual bool SetFromMsg (const uint8_t *msg, const std::size_t msg_size)=0
 Set data from message.
 
- Public Member Functions inherited from fpsdk::common::parser::fpa::FpaPayload
virtual ~FpaPayload ()=default
 Virtual dtor for polymorphism.
 

Public Attributes

Which which = Which::UNSPECIFIED
 Indicates from which message the data is.
 
FpaGpsTime gps_time
 Time.
 
FpaFloat3 acc
 Raw acceleration in output frame, X/Y/Z components.
 
FpaFloat3 rot
 Raw angular velocity in output frame, X/Y/Z components.
 
- Public Attributes inherited from fpsdk::common::parser::fpa::FpaPayload
bool valid_ = false
 Payload successfully decoded (true), or not (yet) decoded (false)
 

Detailed Description

FP_A-...IMU (version 1) messages payload.

Definition at line 622 of file fpa.hpp.

Member Enumeration Documentation

◆ Which

Data from which FP_A-...IMU is stored.

Enumerator
UNSPECIFIED 

Unspecified.

RAWIMU 

Data is from FP_A-RAWIMU.

CORRIMU 

Data is from FP_A-CORRIMU.

Definition at line 625 of file fpa.hpp.

Member Function Documentation

◆ SetFromMsg()

virtual bool fpsdk::common::parser::fpa::FpaImuPayload::SetFromMsg ( const uint8_t * msg,
const std::size_t msg_size )
pure virtual

Set data from message.

Parameters
[in]msgPointer to the FP_A message
[in]msg_sizeSize of the FP_A message (>= 11)
Returns
true if sentence payload was correct and all data could be extracted (fields are now valid), or false otherwise (fields are now invalid)

Implemented in fpsdk::common::parser::fpa::FpaCorrimuPayload, and fpsdk::common::parser::fpa::FpaRawimuPayload.

Member Data Documentation

◆ which

Which fpsdk::common::parser::fpa::FpaImuPayload::which = Which::UNSPECIFIED

Indicates from which message the data is.

Definition at line 631 of file fpa.hpp.

◆ gps_time

FpaGpsTime fpsdk::common::parser::fpa::FpaImuPayload::gps_time

Time.

Definition at line 633 of file fpa.hpp.

◆ acc

FpaFloat3 fpsdk::common::parser::fpa::FpaImuPayload::acc

Raw acceleration in output frame, X/Y/Z components.

Definition at line 634 of file fpa.hpp.

◆ rot

FpaFloat3 fpsdk::common::parser::fpa::FpaImuPayload::rot

Raw angular velocity in output frame, X/Y/Z components.

Definition at line 635 of file fpa.hpp.


The documentation for this struct was generated from the following file: