From de82bb11825e8bc5087f10605b3fe2fd926f1909 Mon Sep 17 00:00:00 2001 From: kartofen Date: Thu, 18 Jan 2024 00:35:25 +0200 Subject: init --- src/main/java/frc/robot/Constants.java | 37 ++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 src/main/java/frc/robot/Constants.java (limited to 'src/main/java/frc/robot/Constants.java') 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(...); +} -- cgit v1.2.3