Skip to content
This repository has been archived by the owner on May 12, 2024. It is now read-only.

Commit

Permalink
fix(auto): dont follow to the same point twice
Browse files Browse the repository at this point in the history
  • Loading branch information
Craftzman7 committed Sep 20, 2023
1 parent 38252bc commit cfea2e4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/main/java/frc/robot/commands/autonomous/AutoShoot.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,8 @@ public AutoShoot(Drivetrain drivetrain, Arm arm, PoseEstimation poseEstimation,
this.addCommands(
new FollowTrajectoryToState(drivetrain, poseEstimation, new PathPoint(shootPose.getTranslation(), shootPose.getRotation(), shootPose.getRotation(), 2), true)
);
}
}
this.addCommands(
new FollowTrajectoryToState(drivetrain, poseEstimation, new PathPoint(shootPose.getTranslation(), shootPose.getRotation(), shootPose.getRotation(), 2), true),
// AllianceUtils.allianceToField(new Pose2d(new Translation2d(3.76, 4.86), new Rotation2d(180)))
new InstantCommand(() -> arm.setTarget(Arm.State.High)),
new WaitCommand(0.25),
Expand Down

0 comments on commit cfea2e4

Please sign in to comment.