diff options
author | kartofen <mladenovnasko0@gmail.com> | 2024-02-24 14:05:20 +0200 |
---|---|---|
committer | kartofen <mladenovnasko0@gmail.com> | 2024-02-24 14:05:20 +0200 |
commit | b929a1d34690d3d7fed6686459ff803962ce907f (patch) | |
tree | 1f6747fface1dc7e2dc0f19d762d37a54ba8edf0 /src/main/java/frc/robot/Constants.java | |
parent | c6d58f5fafb56f8ae295366eadbc247e0217acc8 (diff) |
controlle change
Diffstat (limited to 'src/main/java/frc/robot/Constants.java')
-rw-r--r-- | src/main/java/frc/robot/Constants.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/frc/robot/Constants.java b/src/main/java/frc/robot/Constants.java index 98824ae..017fa74 100644 --- a/src/main/java/frc/robot/Constants.java +++ b/src/main/java/frc/robot/Constants.java @@ -4,14 +4,14 @@ import com.revrobotics.CANSparkMax; import com.revrobotics.CANSparkLowLevel.MotorType; import edu.wpi.first.wpilibj.Encoder; -import edu.wpi.first.wpilibj.GenericHID; import edu.wpi.first.wpilibj.I2C; import edu.wpi.first.wpilibj.I2C.Port; +import edu.wpi.first.wpilibj2.command.button.CommandXboxController; import frc.robot.util.IMUGyro; public class Constants { - public static final GenericHID controller = new GenericHID(1); + public static final CommandXboxController controller = new CommandXboxController(0); public static final double DriveMaxSpeed = 5; // m/s public static final double DriveMaxAngular = Math.PI; // rad/s? |