![]() |
WPILibC++ 2027.0.0-alpha-5
|
#include <cstdint>#include <optional>#include "wpi/hal/DriverStationTypes.h"#include "wpi/math/geometry/Rotation2d.hpp"Go to the source code of this file.
Namespaces | |
| namespace | wpi |
Enumerations | |
| enum class | wpi::POVDirection : uint8_t { wpi::CENTER = HAL_JOYSTICK_POV_CENTERED , wpi::UP = HAL_JOYSTICK_POV_UP , wpi::UP_RIGHT = HAL_JOYSTICK_POV_RIGHT_UP , wpi::RIGHT = HAL_JOYSTICK_POV_RIGHT , wpi::DOWN_RIGHT = HAL_JOYSTICK_POV_RIGHT_DOWN , wpi::DOWN = HAL_JOYSTICK_POV_DOWN , wpi::DOWN_LEFT = HAL_JOYSTICK_POV_LEFT_DOWN , wpi::LEFT = HAL_JOYSTICK_POV_LEFT , wpi::UP_LEFT = HAL_JOYSTICK_POV_LEFT_UP } |
| A controller POV direction. More... | |
Functions | |
| constexpr std::optional< wpi::math::Rotation2d > | wpi::GetPOVAngle (POVDirection angle) |
| Gets the angle of a POVDirection. | |