ReduxLib C++ 2025.0.0-beta2
Loading...
Searching...
No Matches
redux::sensors::canandgyro::Acceleration Class Reference

#include <CanandgyroData.h>

Public Member Functions

constexpr Acceleration (const units::standard_gravity_t x, const units::standard_gravity_t y, const units::standard_gravity_t z)
 
constexpr units::standard_gravity_t X () const
 
constexpr units::standard_gravity_t Y () const
 
constexpr units::standard_gravity_t Z () const
 
Eigen::Vector3d ToVector3d ()
 

Detailed Description

Acceleration data class.

Constructor & Destructor Documentation

◆ Acceleration()

constexpr redux::sensors::canandgyro::Acceleration::Acceleration ( const units::standard_gravity_t  x,
const units::standard_gravity_t  y,
const units::standard_gravity_t  z 
)
inlineconstexpr

constructor

Parameters
xx-axis
yy-axis
zz-axis

Member Function Documentation

◆ ToVector3d()

Eigen::Vector3d redux::sensors::canandgyro::Acceleration::ToVector3d ( )
inline

Converts to a Eigen Vector3d with X/Y/Z-axis acceleration as the first/second/third element and standard gravities as the unit.

Returns
a Vector3d

◆ X()

constexpr units::standard_gravity_t redux::sensors::canandgyro::Acceleration::X ( ) const
inlineconstexpr

X-axis component

Returns
x in accelerational units

◆ Y()

constexpr units::standard_gravity_t redux::sensors::canandgyro::Acceleration::Y ( ) const
inlineconstexpr

Y-axis component

Returns
y in accelerational units

◆ Z()

constexpr units::standard_gravity_t redux::sensors::canandgyro::Acceleration::Z ( ) const
inlineconstexpr

Z-axis component

Returns
z in accelerational units

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