Skip to content

Commit

Permalink
Add missing Java units usage in TunerConstants
Browse files Browse the repository at this point in the history
  • Loading branch information
bhall-ctre committed Dec 13, 2024
1 parent 9aedfa1 commit a555856
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,8 @@ public class TunerConstants {
private static final int kPigeonId = 1;

// These are only used for simulation
private static final double kSteerInertia = 0.01;
private static final double kDriveInertia = 0.01;
private static final MomentOfInertia kSteerInertia = KilogramSquareMeters.of(0.01);
private static final MomentOfInertia kDriveInertia = KilogramSquareMeters.of(0.01);
// Simulated voltage necessary to overcome friction
private static final Voltage kSteerFrictionVoltage = Volts.of(0.2);
private static final Voltage kDriveFrictionVoltage = Volts.of(0.2);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,8 @@ public class TunerConstants {
private static final int kPigeonId = 1;

// These are only used for simulation
private static final double kSteerInertia = 0.01;
private static final double kDriveInertia = 0.01;
private static final MomentOfInertia kSteerInertia = KilogramSquareMeters.of(0.01);
private static final MomentOfInertia kDriveInertia = KilogramSquareMeters.of(0.01);
// Simulated voltage necessary to overcome friction
private static final Voltage kSteerFrictionVoltage = Volts.of(0.2);
private static final Voltage kDriveFrictionVoltage = Volts.of(0.2);
Expand Down

0 comments on commit a555856

Please sign in to comment.