22 UP = HAL_JOYSTICK_POV_UP,
30 DOWN = HAL_JOYSTICK_POV_DOWN,
34 LEFT = HAL_JOYSTICK_POV_LEFT,
A rotation in a 2D coordinate frame represented by a point on the unit circle (cosine and sine).
Definition Rotation2d.hpp:29
Definition CvSource.hpp:15
constexpr std::optional< wpi::math::Rotation2d > GetPOVAngle(POVDirection angle)
Gets the angle of a POVDirection.
Definition POVDirection.hpp:46
POVDirection
A controller POV direction.
Definition POVDirection.hpp:18
@ RIGHT
POV right.
Definition POVDirection.hpp:26
@ UP_LEFT
POV up left.
Definition POVDirection.hpp:36
@ LEFT
POV left.
Definition POVDirection.hpp:34
@ DOWN_LEFT
POV down left.
Definition POVDirection.hpp:32
@ CENTER
POV center.
Definition POVDirection.hpp:20
@ DOWN
POV down.
Definition POVDirection.hpp:30
@ DOWN_RIGHT
POV down right.
Definition POVDirection.hpp:28
@ UP_RIGHT
POV up right.
Definition POVDirection.hpp:24
@ UP
POV up.
Definition POVDirection.hpp:22