[hal,wpilib,cmd] Update POVs to use enums (#7978)

This commit is contained in:
Joseph Eng
2025-06-29 18:32:26 -07:00
committed by GitHub
parent e13d237390
commit f55564729b
30 changed files with 538 additions and 378 deletions

View File

@@ -286,9 +286,10 @@ class DriverStationSim {
*
* @param stick The joystick number
* @param pov The POV number
* @param value the angle of the POV in degrees, or -1 for not pressed
* @param value the angle of the POV
*/
static void SetJoystickPOV(int stick, int pov, int value);
static void SetJoystickPOV(int stick, int pov,
DriverStation::POVDirection value);
/**
* Sets the state of all the buttons on a joystick.

View File

@@ -6,6 +6,7 @@
#include <stdint.h>
#include "frc/DriverStation.h"
#include "frc/GenericHID.h"
namespace frc {
@@ -60,14 +61,14 @@ class GenericHIDSim {
* @param pov the POV to set
* @param value the new value
*/
void SetPOV(int pov, int value);
void SetPOV(int pov, DriverStation::POVDirection value);
/**
* Set the value of the default POV (port 0).
*
* @param value the new value
*/
void SetPOV(int value);
void SetPOV(DriverStation::POVDirection value);
/**
* Set the axis count of this device.