File tree 2 files changed +3
-2
lines changed
main/java/org/lasarobotics/drive
test/java/org/lasarobotics/drive
2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -37,9 +37,10 @@ private State(int value) {
37
37
public abstract State toggle ();
38
38
}
39
39
40
+ public static final double VELOCITY_CORRECTION_SCALAR = 0.7 ;
41
+
40
42
private final double MIN_SLIP_RATIO = 0.01 ;
41
43
private final double MAX_SLIP_RATIO = 0.40 ;
42
- private final double VELOCITY_CORRECTION_SCALAR = 0.7 ;
43
44
private final int SIGMOID_K = 10 ;
44
45
private final Measure <Velocity <Distance >> INERTIAL_VELOCITY_THRESHOLD = Units .MetersPerSecond .of (0.01 );
45
46
private final Measure <Time > MIN_SLIPPING_TIME = Units .Seconds .of (1.1 );
Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ public void limitSlip() {
52
52
53
53
// Verify behavior
54
54
assertTrue (m_tractionControlController .isSlipping ());
55
- assertTrue (outputSpeed .lte (MAX_LINEAR_SPEED . times ( SLIP_RATIO . in ( Units . Value )) ));
55
+ assertTrue (outputSpeed .lte (MAX_LINEAR_SPEED ));
56
56
}
57
57
58
58
@ Test
You can’t perform that action at this time.
0 commit comments