File tree Expand file tree Collapse file tree 4 files changed +13
-8
lines changed Expand file tree Collapse file tree 4 files changed +13
-8
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,13 @@ public static Color allianceToColor(Alliance alliance) {
14
14
return alliance == Alliance .Blue ? Color .kBlue : Color .kRed ;
15
15
}
16
16
17
+ /**
18
+ * Returns true if the numbners are within floating point precision
19
+ *
20
+ * @param a first value
21
+ * @param b second value
22
+ * @return true iff a and b are effectively equal
23
+ */
17
24
public static boolean nearlyEqual (double a , double b ) {
18
25
return Math .abs (a - b ) < Math .ulp (1 );
19
26
}
Original file line number Diff line number Diff line change @@ -503,17 +503,13 @@ public void execute() {
503
503
}
504
504
505
505
public static AddressableLEDBufferView [] intakeBuffers = {
506
- // leftStrip,
507
- // rightStrip
508
506
Segments .leftTop .bufferView .reversed (),
509
507
Segments .rightTop .bufferView .reversed (),
510
508
Segments .leftBottom .bufferView ,
511
509
Segments .rightBottom .bufferView
512
510
};
513
511
514
512
public static AddressableLEDBufferView [] outtakeBuffers = {
515
- // leftStrip.reversed(),
516
- // rightStrip.reversed()
517
513
Segments .leftTop .bufferView ,
518
514
Segments .rightTop .bufferView ,
519
515
Segments .leftBottom .bufferView .reversed (),
Original file line number Diff line number Diff line change @@ -280,7 +280,7 @@ private void configureDriverButtonBindings() {
280
280
var outtaking = driver .HIn ();
281
281
lifter .atProcessorHeight .and (outtaking )
282
282
.whileTrue (algaeRoller .createOuttakeToProcessorCommand ());
283
- lifter .atBargeHeight .and (outtaking )
283
+ lifter .atProcessorHeight . negate () .and (outtaking )
284
284
.whileTrue (algaeRoller .createOuttakeToBargeCommand ());
285
285
outtaking
286
286
.whileTrue (coralRoller .createOuttakeCommand ());
@@ -460,7 +460,7 @@ protected Command createRollerAnimationCommand() {
460
460
*/
461
461
BooleanSupplier intakeSupplier =
462
462
() -> {
463
- return coralRoller .getRollerVelocity () > 0 || algaeRoller .getRollerVelocity () > 0 ;
463
+ return coralRoller .getRollerVelocity () > 1 || algaeRoller .getRollerVelocity () > 1 ;
464
464
};
465
465
466
466
/*
Original file line number Diff line number Diff line change @@ -155,7 +155,8 @@ public static enum CoralWristState {
155
155
L1 (125 ),
156
156
L2 (65 ),
157
157
L3 (65 ),
158
- L4 (35 ),
158
+ // TODO: reevaluate
159
+ L4 (30 ),
159
160
Intake (125 ),
160
161
AlgaeMode (90 );
161
162
@@ -242,7 +243,8 @@ public static enum AlgaeWristState {
242
243
Processor (0 ),
243
244
L2 (-5 ),
244
245
L3 (-5 ),
245
- Barge (60 ),
246
+ // TODO: reevaluate
247
+ Barge (55 ),
246
248
CoralMode (80 );
247
249
248
250
public Angle angle ;
You can’t perform that action at this time.
0 commit comments