[wpilib] Split DriverStation into smaller classes (#8628)

This commit is contained in:
Thad House
2026-04-18 19:56:45 -07:00
committed by GitHub
parent 58ad633ae2
commit ab2aef2c29
108 changed files with 4406 additions and 3211 deletions

View File

@@ -5,8 +5,8 @@
package org.wpilib.simulation;
import java.util.EnumSet;
import org.wpilib.driverstation.DriverStation;
import org.wpilib.driverstation.GenericHID;
import org.wpilib.driverstation.POVDirection;
/** Class to control a simulated generic joystick. */
public class GenericHIDSim {
@@ -62,7 +62,7 @@ public class GenericHIDSim {
* @param pov the POV to set
* @param value the new value
*/
public void setPOV(int pov, DriverStation.POVDirection value) {
public void setPOV(int pov, POVDirection value) {
DriverStationSim.setJoystickPOV(m_port, pov, value);
}
@@ -71,7 +71,7 @@ public class GenericHIDSim {
*
* @param value the new value
*/
public void setPOV(DriverStation.POVDirection value) {
public void setPOV(POVDirection value) {
setPOV(0, value);
}