9#include <units/force.h>
10#include <units/angular_velocity.h>
26 const units::turns_per_second_t roll,
27 const units::turns_per_second_t pitch,
28 const units::turns_per_second_t yaw
29 ) : roll{roll}, pitch{pitch}, yaw{yaw} {};
35 constexpr units::turns_per_second_t
Roll()
const {
return this->roll; }
41 constexpr units::turns_per_second_t
Pitch()
const {
return this->pitch; }
47 constexpr units::turns_per_second_t
Yaw()
const {
return this->yaw; }
55 return Eigen::Vector3d {
56 this->roll.convert<units::radians_per_second>().value(),
57 this->pitch.convert<units::radians_per_second>().value(),
58 this->yaw.convert<units::radians_per_second>().value(),
64 units::turns_per_second_t roll;
65 units::turns_per_second_t pitch;
66 units::turns_per_second_t yaw;
83 const units::standard_gravity_t x,
84 const units::standard_gravity_t y,
85 const units::standard_gravity_t z
86 ) : x{x}, y{y}, z{z} {};
92 constexpr units::standard_gravity_t
X()
const {
return this->x; }
97 constexpr units::standard_gravity_t
Y()
const {
return this->y; }
102 constexpr units::standard_gravity_t
Z()
const {
return this->z; }
110 return Eigen::Vector3d {
119 units::standard_gravity_t x;
120 units::standard_gravity_t y;
121 units::standard_gravity_t z;
Definition: CanandgyroData.h:74
constexpr units::standard_gravity_t Y() const
Definition: CanandgyroData.h:97
constexpr units::standard_gravity_t Z() const
Definition: CanandgyroData.h:102
Eigen::Vector3d ToVector3d()
Definition: CanandgyroData.h:109
constexpr units::standard_gravity_t X() const
Definition: CanandgyroData.h:92
constexpr Acceleration(const units::standard_gravity_t x, const units::standard_gravity_t y, const units::standard_gravity_t z)
Definition: CanandgyroData.h:82
Definition: CanandgyroData.h:17
constexpr units::turns_per_second_t Roll() const
Definition: CanandgyroData.h:35
constexpr units::turns_per_second_t Yaw() const
Definition: CanandgyroData.h:47
constexpr AngularVelocity(const units::turns_per_second_t roll, const units::turns_per_second_t pitch, const units::turns_per_second_t yaw)
Definition: CanandgyroData.h:25
constexpr units::turns_per_second_t Pitch() const
Definition: CanandgyroData.h:41
Eigen::Vector3d ToVector3d()
Definition: CanandgyroData.h:54
Definition: Canandgyro.h:32