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

Commit 69e9b36

Browse files
fixed UpdateLiftPosition so it goes to HOLD_CUBE before going to GROUND
1 parent 0957fa6 commit 69e9b36

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

Robot2018/src/org/usfirst/frc/team199/Robot2018/commands/UpdateLiftPosition.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ protected void execute() {
4444
System.out.println("POV Reading: " + angle);
4545

4646
if (angle == 180) {
47-
desiredPos = LiftHeight.GROUND;
47+
desiredPos = LiftHeight.HOLD_CUBE;
4848
goToGround = true;
4949
} else if (angle == 270) {
5050
desiredPos = LiftHeight.HOLD_CUBE;
@@ -65,6 +65,9 @@ protected void execute() {
6565
lift.setSetpoint(desiredDist);
6666
goToGround = false;
6767
}
68+
System.out.println("Desired Pos: " + desiredPos);
69+
System.out.println("Desired Dist: " + desiredDist);
70+
System.out.println("Current Dist: " + lift.getHeight());
6871
}
6972
}
7073

0 commit comments

Comments
 (0)