Skip to content

Commit 8b28e69

Browse files
committed
Fix slow signal period for REV swerve modules
1 parent 6b4f908 commit 8b28e69

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/org/lasarobotics/drive/swerve/parent/REVSwerveModule.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,8 @@ public Hardware(Spark driveMotor, Spark rotateMotor) {
6868
}
6969

7070
private static final Frequency UPDATE_RATE = Units.Hertz.of(100.0);
71-
public static final Time DEFAULT_SIGNAL_PERIOD = Units.Milliseconds.of(10.0);
72-
public static final Time SLOW_SIGNAL_PERIOD = Units.Seconds.of(10.0);
71+
public static final Time DEFAULT_SIGNAL_PERIOD = UPDATE_RATE.asPeriod();
72+
public static final Time SLOW_SIGNAL_PERIOD = Units.Seconds.one();
7373
public static final double DRIVETRAIN_EFFICIENCY = 0.90;
7474

7575
private final double EPSILON = 5e-3;

0 commit comments

Comments
 (0)