Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/nishk-1' into nishk-1
Browse files Browse the repository at this point in the history
  • Loading branch information
Nishk04 committed Jan 4, 2024
2 parents aa79833 + 5e975b9 commit c68db03
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,10 @@ public void runOpMode() throws InterruptedException {
undoCenter.run();
break;
}
// PUT IF STATEMENT TO BRANCH HERE

if (parkingConf() == Parking.OtherParking)
throw new IllegalStateException("Don't know how to handle OtherParking here");
double modifier = parkingConf() == Parking.MoveLeft ? 1 : -1;
turnPID.TurnRobot(modifier * 100.0, telemetry);
forwardPID.DriveReverse(19.0, telemetry, 5.0);
Expand Down Expand Up @@ -292,7 +296,6 @@ public void runOpMode() throws InterruptedException {
.then(driveToTag.getTaskFactory())
.then(theXButton.approach(new InchUnit(3.5)));

// ewwwww
scheduler.runToCompletion(this::opModeIsActive);
// robot.liftLeft().setTargetPosition(1000);

Expand Down Expand Up @@ -372,6 +375,7 @@ public enum StartPosition {
public enum Parking {
MoveLeft,
MoveRight,
NoParking
NoParking,
OtherParking
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@ protected StartPosition positionConf() {

@Override
protected Parking parkingConf() {
return Parking.NoParking;
return Parking.OtherParking;
}
}

0 comments on commit c68db03

Please sign in to comment.