Add Euler angles to Madgwick and update docs.

This commit is contained in:
2019-08-06 23:42:51 -07:00
parent 85833c354d
commit ff3ff8d8b2
5 changed files with 22 additions and 5 deletions

View File

@@ -91,6 +91,16 @@ public:
this->updateFrame(this->sensorFrame + q, delta);
}
/// Retrieve a vector of the Euler angles in ZYX orientation.
///
/// \return A vector of Euler angles as <ψ, θ, ϕ>.
geom::Vector<T, 3>
euler()
{
return this->sensorFrame.euler();
}
private:
T deltaT;
geom::Quaternion<T> previousSensorFrame;