Skip to content

Commit

Permalink
Adjust three piece
Browse files Browse the repository at this point in the history
  • Loading branch information
Prog694 committed Apr 10, 2023
1 parent be23237 commit 8cee43b
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public AutonReady() {
}
});
}

@Override
protected ArmTrajectory getTrajectory(ArmState src, ArmState dest) {
double wristSafeAngle = Wrist.WRIST_SAFE_ANGLE.get();
Expand All @@ -65,7 +65,7 @@ protected ArmTrajectory getTrajectory(ArmState src, ArmState dest) {
.addState(new ArmState(src.getShoulderDegrees(), wristSafeAngle)
.setWristTolerance(45))
.addState(new ArmState(dest.getShoulderState(), dest.getWristState())
.setWristTolerance(30).setShoulderTolerance(20));
.setWristTolerance(7).setShoulderTolerance(25));
}
}
static class ArmIntakeFirst extends ArmRoutine {
Expand Down Expand Up @@ -174,7 +174,7 @@ public ThreePiece() {
addCommands(
new LEDSet(LEDColor.BLUE),
new IntakeScore(),
new WaitCommand(INTAKE_DEACQUIRE_TIME)
new WaitCommand(0.8)
);

// intake second piece
Expand All @@ -188,7 +188,8 @@ public ThreePiece() {
.withStop(),
// .until(Intake.getInstance()::hasGamePiece), // interrupting IntakeScore? idk one time the intake just stopped early

new WaitCommand(INTAKE_STOP_WAIT_TIME)
new IntakeScore()
.andThen(new WaitCommand(INTAKE_STOP_WAIT_TIME))
.andThen(new IntakeStop())
.andThen(new ManagerSetGamePiece(GamePiece.CUBE))
.andThen(new IntakeAcquire()),
Expand Down

0 comments on commit 8cee43b

Please sign in to comment.