summaryrefslogtreecommitdiff
path: root/src/main/java/frc/robot/Constants.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/frc/robot/Constants.java')
-rw-r--r--src/main/java/frc/robot/Constants.java37
1 files changed, 37 insertions, 0 deletions
diff --git a/src/main/java/frc/robot/Constants.java b/src/main/java/frc/robot/Constants.java
new file mode 100644
index 0000000..f517f08
--- /dev/null
+++ b/src/main/java/frc/robot/Constants.java
@@ -0,0 +1,37 @@
+package frc.robot;
+
+import edu.wpi.first.math.controller.SimpleMotorFeedforward;
+import edu.wpi.first.wpilibj.AnalogGyro;
+import edu.wpi.first.wpilibj.Encoder;
+import edu.wpi.first.wpilibj.drive.DifferentialDrive;
+import edu.wpi.first.wpilibj.motorcontrol.PWMSparkMax;
+
+public class Constants
+{
+ // other constants
+
+ public static final int PortDriverController = 0;
+
+ public static final double DriveMaxSpeed = 0;
+ public static final double DriveMaxAngular = 0;
+
+ public static final double WheelRadius = 0; // in meters
+ public static final double TrackWidth = 0; // in meters
+
+ public static final double EncoderResolution = 4096;
+
+ // public static final DifferentialDrive drive = new DifferentialDrive(...);
+
+ public static final AnalogGyro gyro = new AnalogGyro(...);
+
+ public static final PWMSparkMax motorL_leader = new PWMSparkMax(...);
+ public static final PWMSparkMax motorL_follower = new PWMSparkMax(...);
+ public static final PWMSparkMax motorR_leader = new PWMSparkMax(...);
+ public static final PWMSparkMax motorR_follower = new PWMSparkMax(...);
+
+
+ public static final Encoder encoderL = new Encoder(...);
+ public static final Encoder encoderR = new Encoder(...);
+
+ public static final SimpleMotorFeedforward feedforward = new SimpleMotorFeedforward(...);
+}