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::FpaTfPayload Struct Reference

FP_A-TF (version 2) message payload. More...

#include <fpa.hpp>

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

Public Member Functions

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

Public Attributes

FpaGpsTime gps_time
 Time.
 
char frame_a [10] = { 0 }
 Target frame (nul-terminated string)
 
char frame_b [10] = { 0 }
 Initial frame (nul-terminated string)
 
FpaFloat3 translation
 Translation, X/Y/Z components.
 
FpaFloat4 orientation
 Rotation in quaternion, W/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)
 

Static Public Attributes

static constexpr const char * MSG_NAME = "FP_A-TF"
 Message name.
 

Detailed Description

FP_A-TF (version 2) message payload.

Definition at line 866 of file fpa.hpp.

Member Function Documentation

◆ SetFromMsg()

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

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)

Member Data Documentation

◆ gps_time

FpaGpsTime fpsdk::common::parser::fpa::FpaTfPayload::gps_time

Time.

Definition at line 868 of file fpa.hpp.

◆ frame_a

char fpsdk::common::parser::fpa::FpaTfPayload::frame_a[10] = { 0 }

Target frame (nul-terminated string)

Definition at line 869 of file fpa.hpp.

◆ frame_b

char fpsdk::common::parser::fpa::FpaTfPayload::frame_b[10] = { 0 }

Initial frame (nul-terminated string)

Definition at line 870 of file fpa.hpp.

◆ translation

FpaFloat3 fpsdk::common::parser::fpa::FpaTfPayload::translation

Translation, X/Y/Z components.

Definition at line 871 of file fpa.hpp.

◆ orientation

FpaFloat4 fpsdk::common::parser::fpa::FpaTfPayload::orientation

Rotation in quaternion, W/X/Y/Z components.

Definition at line 872 of file fpa.hpp.

◆ MSG_NAME

const char* fpsdk::common::parser::fpa::FpaTfPayload::MSG_NAME = "FP_A-TF"
staticconstexpr

Message name.

Definition at line 886 of file fpa.hpp.


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