Skip to content

Commit

Permalink
updated physical constants (drive, elevator)
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelx0281 committed Feb 1, 2025
1 parent 193efb7 commit dbdf8f5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,11 @@ public static enum ControlMode {
public static final Time SENSOR_PERIOD = Seconds.of(0.02);

// Distance between centers of right and left wheels on robot
public static final Distance TRACK_WIDTH = Meters.of(0.5715);
public static final Distance TRACK_WIDTH = Meters.of(0.5931); // .5884 //.5931
// Distance between front and back wheels on robot
public static final Distance WHEEL_BASE = Meters.of(0.5715);
public static final Distance WHEEL_BASE = Meters.of(0.59077); // .59077
// The radius of any swerve wheel
public static final Distance WHEEL_RADIUS = Inches.of(1.5);
public static final Distance WHEEL_RADIUS = Inches.of(2); // 4/00 dia, 2.00 rad
// Distance from the center to any wheel of the robot
public static final Distance RADIUS = TRACK_WIDTH.div(2).times(Math.sqrt(2));
// Coefficient of friction between the drive wheel and the carpet.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,12 @@ public class ElevatorConstants {
public static final LinearVelocity MAX_VELOCITY = MetersPerSecond.of(1);
public static final LinearAcceleration MAX_ACCEL = MetersPerSecondPerSecond.of(1);

public static final Mass WEIGHT = Kilograms.of(20);
public static final Mass WEIGHT = Kilograms.of(20); //
public static final Distance DRUM_RADIUS = Meters.of(.1);
public static final double GEARING = 20 / 1;
public static final Distance SPROCKET_RADIUS = Inches.of(1);
public static final Distance SPROCKET_CIRCUMFRENCE = SPROCKET_RADIUS.times(2 * Math.PI);
public static final Distance SPROCKET_RADIUS = Inches.of(0.8785); // .8785
public static final Distance SPROCKET_CIRCUMFRENCE =
SPROCKET_RADIUS.times(2 * Math.PI); // .944 * 2pi
// Input to Output; "values greater than one represent a reduction"
public static final double CONVERSION_FACTOR = GEARING / SPROCKET_CIRCUMFRENCE.in(Meters) / 2;

Expand Down

0 comments on commit dbdf8f5

Please sign in to comment.