File tree Expand file tree Collapse file tree 1 file changed +1
-3
lines changed
src/main/java/frc/robot/Subsystems/AlgaeCoraler Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change 11package frc .robot .Subsystems .AlgaeCoraler ;
22
3- import static edu .wpi .first .units .Units .*;
43import static frc .robot .Subsystems .AlgaeCoraler .AlgaeCoralerConstants .*;
54
65import com .revrobotics .spark .SparkLowLevel .MotorType ;
76import com .revrobotics .spark .SparkMax ;
87import edu .wpi .first .math .filter .Debouncer ;
98import edu .wpi .first .math .filter .Debouncer .DebounceType ;
10- import edu .wpi .first .math .util .Units ;
119import edu .wpi .first .wpilibj .DigitalInput ;
1210import org .littletonrobotics .junction .Logger ;
1311
@@ -60,7 +58,7 @@ public void setArmSpeed(double armSpeed) {
6058
6159 @ Override
6260 public boolean nearTarget () {
63- if (debounce .calculate (pivotMotor .getOutputCurrent () >= NEAR_TARGET_AMPS )) {
61+ if (debounce .calculate (pivotMotor .getOutputCurrent () >= NEAR_TARGET_AMPS . magnitude () )) {
6462 return true ;
6563 }
6664 return false ;
You can’t perform that action at this time.
0 commit comments