Skyward boardcore
Loading...
Searching...
No Matches
SkyQuaternion.h File Reference
#include <Eigen/Dense>
Include dependency graph for SkyQuaternion.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  Boardcore
 This file includes all the types the logdecoder script will decode.
 
namespace  Boardcore::SkyQuaternion
 Functions for managing quaternions.
 

Functions

Eigen::Vector4f Boardcore::SkyQuaternion::eul2quat (const Eigen::Vector3f &euler)
 Transform a vector of euler angles (ZYX) to quaternion.
 
Eigen::Vector3f Boardcore::SkyQuaternion::quat2eul (const Eigen::Vector4f &quat)
 Transform a quaternion into a vector of euler angles (ZYX).
 
Eigen::Vector3f Boardcore::SkyQuaternion::quat2stepperAngles (const Eigen::Vector4f &quat)
 Translates quaternions to yaw and pitch angles assuming roll stays close to 0.
 
Eigen::Vector4f Boardcore::SkyQuaternion::rotationMatrix2quat (const Eigen::Matrix3f &rtm)
 Transform a rotation matrix into a quaternion.
 
Eigen::Matrix3f Boardcore::SkyQuaternion::quat2rotationMatrix (const Eigen::Vector4f &quat)
 Transform a quaternion into a rotation matrix.
 
bool Boardcore::SkyQuaternion::quatNormalize (Eigen::Vector4f &quat)
 Normalize a quaternion.
 
Eigen::Vector4f Boardcore::SkyQuaternion::quatProd (const Eigen::Vector4f &q1, const Eigen::Vector4f &q2)
 Compute the product of two quaternions.