38 Vector3f am(acc.cross(mag));
42 R << am.cross(acc), am, acc;
56 const Vector3f& nedMag)
60 Vector3f nedAcc(0.0f, 0.0f, -1.0f);
64 Vector3f R2 = nedAcc.cross(nedMag).normalized();
65 Vector3f R3 = R1.cross(R2);
69 Vector3f r2 = acc.cross(mag).normalized();
70 Vector3f r3 = r1.cross(r2);
81 Matrix3f A = m * M.transpose();
static constexpr uint16_t IDX_QUAT
Index of bias elements in the state.
void triad(const Eigen::Vector3f &acc, const Eigen::Vector3f &mag, const Eigen::Vector3f &nedMag)
Triad algorithm to estimate the attitude before the liftoff.
Eigen::Matrix< float, 13, 1 > getInitX()
void eCompass(const Eigen::Vector3f acc, const Eigen::Vector3f mag)
Ecompass algorithm to estimate the attitude before the liftoff.
StateInitializer()
Initialize the state of the Extended Kalman Filter.
Vector4f rotationMatrix2quat(const Matrix3f &rtm)
This file includes all the types the logdecoder script will decode.