[wpilib] Prefix all NI DS specific controller classes (#8596)

Easier then the last one that put everything in a sub namespace. By
prefixing the name less things break, and intellisense will be less
confusing to new users during the transition.
This commit is contained in:
Thad House
2026-02-06 21:36:01 -08:00
committed by GitHub
parent 77b2f9802e
commit 5c5d5222f4
133 changed files with 1959 additions and 2682 deletions

View File

@@ -5,7 +5,7 @@
package org.wpilib.examples.gettingstarted;
import org.wpilib.drive.DifferentialDrive;
import org.wpilib.driverstation.XboxController;
import org.wpilib.driverstation.Gamepad;
import org.wpilib.framework.TimedRobot;
import org.wpilib.hardware.motor.PWMSparkMax;
import org.wpilib.system.Timer;
@@ -21,7 +21,7 @@ public class Robot extends TimedRobot {
private final PWMSparkMax m_rightDrive = new PWMSparkMax(1);
private final DifferentialDrive m_robotDrive =
new DifferentialDrive(m_leftDrive::set, m_rightDrive::set);
private final XboxController m_controller = new XboxController(0);
private final Gamepad m_controller = new Gamepad(0);
private final Timer m_timer = new Timer();
/** Called once at the beginning of the robot program. */