diff options
author | kartofen <mladenovnasko0@gmail.com> | 2024-01-18 00:35:25 +0200 |
---|---|---|
committer | kartofen <mladenovnasko0@gmail.com> | 2024-01-18 00:35:25 +0200 |
commit | de82bb11825e8bc5087f10605b3fe2fd926f1909 (patch) | |
tree | 73723345f7c5ebfe8a64d4fe904fa85ea57538e1 /src/main/java/frc/robot/Constants.java |
init
Diffstat (limited to 'src/main/java/frc/robot/Constants.java')
-rw-r--r-- | src/main/java/frc/robot/Constants.java | 37 |
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(...); +} |