#include <NumberManipulation.hpp>
Public Member Functions | |
double | operator() (double angle) |
unwrap () | |
Private Attributes | |
double | anglek_1 |
int | index |
The structure handles angle unwrapping. We use a structure for re-entrant behaviour. When doing estimation or control use the angle unwrapper to condition the vehicle angle. We recommend putting this in vehicle driver to supply a unwrapped vehicle yaw.
Definition at line 171 of file NumberManipulation.hpp.
labust::math::unwrap::unwrap | ( | ) | [inline] |
Generic constructor.
Definition at line 176 of file NumberManipulation.hpp.
double labust::math::unwrap::operator() | ( | double | angle | ) | [inline] |
Based on the current angle and history calculates the unwrapped angle value. Useful for tracking the amount of full circles the vehicle has taken.
angle | Angle in radians. |
Definition at line 183 of file NumberManipulation.hpp.
double labust::math::unwrap::anglek_1 [private] |
The last angle.
Definition at line 201 of file NumberManipulation.hpp.
int labust::math::unwrap::index [private] |
The wrap-around index.
Definition at line 205 of file NumberManipulation.hpp.