mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-24 01:31:46 +00:00
[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:
@@ -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. */
|
||||
|
||||
Reference in New Issue
Block a user