mirror of
https://github.com/Team4388/RiseOfRidgebotics2020.git
synced 2026-06-09 08:48:01 -06:00
Refactored constants
This commit is contained in:
@@ -37,11 +37,11 @@ public final class Constants {
|
|||||||
public static final int DRIVE_ACCELERATION = 7000;
|
public static final int DRIVE_ACCELERATION = 7000;
|
||||||
|
|
||||||
/* Trajectory Constants */
|
/* Trajectory Constants */
|
||||||
public static final double kMaxSpeedMetersPerSecond = 3;
|
public static final double MAX_SPEED_METERS_PER_SECOND = 3;
|
||||||
public static final double kMaxAccelerationMetersPerSecondSquared = 3;
|
public static final double MAX_ACCELERATION_METERS_PER_SECOND_SQUARED = 3;
|
||||||
public static final double kTrackwidthMeters = 0.648; ///TODO: SET THIS SOON!
|
public static final double TRACK_WIDTH_METERS = 0.648; ///TODO: SET THIS SOON!
|
||||||
public static final DifferentialDriveKinematics kDriveKinematics = new DifferentialDriveKinematics(kTrackwidthMeters);
|
public static final DifferentialDriveKinematics kDriveKinematics = new DifferentialDriveKinematics(TRACK_WIDTH_METERS);
|
||||||
|
|
||||||
/* Remote Sensors */
|
/* Remote Sensors */
|
||||||
public final static int REMOTE_0 = 0;
|
public final static int REMOTE_0 = 0;
|
||||||
public final static int REMOTE_1 = 1;
|
public final static int REMOTE_1 = 1;
|
||||||
|
|||||||
@@ -174,8 +174,8 @@ public class RobotContainer {
|
|||||||
public Command getAutonomousCommand() {
|
public Command getAutonomousCommand() {
|
||||||
|
|
||||||
// Create config for trajectory
|
// Create config for trajectory
|
||||||
TrajectoryConfig config = new TrajectoryConfig( DriveConstants.kMaxSpeedMetersPerSecond,
|
TrajectoryConfig config = new TrajectoryConfig( DriveConstants.MAX_SPEED_METERS_PER_SECOND,
|
||||||
DriveConstants.kMaxAccelerationMetersPerSecondSquared)
|
DriveConstants.MAX_ACCELERATION_METERS_PER_SECOND_SQUARED)
|
||||||
// Add kinematics to ensure max speed is actually obeyed
|
// Add kinematics to ensure max speed is actually obeyed
|
||||||
.setKinematics(DriveConstants.kDriveKinematics);
|
.setKinematics(DriveConstants.kDriveKinematics);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user