Skip to content

Commit 7a4e3ee

Browse files
Updated autonomous programs to pre-start shooter only up to IDLE_SPEED (instead of INITIATION_LINE_SPEED) in order to avoid vibration during targeting.
1 parent 22d6fc5 commit 7a4e3ee

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/main/java/org/mayheminc/robot2020/autonomousroutines/StartBWShoot3.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public StartBWShoot3() {
2727
// is turned towards the target
2828
addCommands(new ParallelCommandGroup( // run the following commands in parallel:
2929
new IntakeSetPosition(RobotContainer.intake.PIVOT_DOWN),
30-
new ShooterWheelSet(ShooterWheel.INITIATION_LINE_SPEED),
30+
new ShooterWheelSet(ShooterWheel.IDLE_SPEED),
3131
new HoodSetAbsWhileHeld(Hood.INITIATION_LINE_POSITION),
3232
new TurretSetAbs((180.0 * Turret.TICKS_PER_DEGREE), Turret.WAIT_FOR_DONE)));
3333

src/main/java/org/mayheminc/robot2020/autonomousroutines/StartBWTrench.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public StartBWTrench(double extraDistance) {
4949

5050
// drive diagonally over towards the shooting position, while turning on shooter
5151
// wheels, raising the hood, and re-aiming the turret
52-
addCommands(new ParallelCommandGroup(new ShooterWheelSet(ShooterWheel.INITIATION_LINE_SPEED),
52+
addCommands(new ParallelCommandGroup(new ShooterWheelSet(ShooterWheel.IDLE_SPEED),
5353
new HoodSetAbsWhileHeld(Hood.INITIATION_LINE_POSITION),
5454
new TurretSetAbs((168.0 * Turret.TICKS_PER_DEGREE)),
5555
new DriveStraightOnHeading(-0.5, DistanceUnits.INCHES, 96, 160)));

src/main/java/org/mayheminc/robot2020/autonomousroutines/StartFWRendezvous.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public StartFWRendezvous() {
3232
// is turned towards the target
3333
addCommands(new ParallelCommandGroup( // run the following commands in parallel:
3434
new IntakeSetPosition(RobotContainer.intake.PIVOT_DOWN),
35-
new ShooterWheelSet(ShooterWheel.INITIATION_LINE_SPEED),
35+
new ShooterWheelSet(ShooterWheel.IDLE_SPEED),
3636
new HoodSetAbs(Hood.INITIATION_LINE_POSITION),
3737
new TurretSetAbs((10.0 * Turret.TICKS_PER_DEGREE), Turret.WAIT_FOR_DONE)));
3838

0 commit comments

Comments
 (0)