Skip to content
This repository was archived by the owner on Sep 14, 2019. It is now read-only.

Commit b2c7853

Browse files
changed default max intake current for hasCube method to be much lower
1 parent 8a1864d commit b2c7853

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Robot2018/src/org/usfirst/frc/team199/Robot2018/subsystems/IntakeEject.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ public boolean hasCube() {
6868
SmartDashboard.putNumber("Intake Current Left", Robot.rmap.getPort("PDP Intake Left Channel", 4));
6969

7070
SmartDashboard.putNumber("Intake Current Right", Robot.rmap.getPort("PDP Intake Left Channel", 11));
71-
return pdp.getCurrent(Robot.rmap.getPort("PDP Intake Left Channel", 4)) > Robot.getConst("Max Current", 39)
71+
return pdp.getCurrent(Robot.rmap.getPort("PDP Intake Left Channel", 4)) > Robot.getConst("Max Current", 15)
7272
|| pdp.getCurrent(Robot.rmap.getPort("PDP Intake Right Channel", 11)) > Robot.getConst("Max Current",
7373
39);
7474
}

0 commit comments

Comments
 (0)