Skip to content

Commit f3749d3

Browse files
committed
Refine resetting the shooter at start of teleop
1 parent 423dded commit f3749d3

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

src/main/java/frc/robot/Robot.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,8 +170,8 @@ public void teleopInit() {
170170
// teleop starts running. If you want the autonomous to
171171
// continue until interrupted by another command, remove
172172
// this line or comment it out.
173-
mRobotContainer.stopShooter();
174-
mRobotContainer.moveHoodToHardStop();
173+
mRobotContainer.resetShooter();
174+
// mRobotContainer.moveHoodToHardStop();
175175
if (m_autonomousCommand != null) {
176176
m_autonomousCommand.cancel();
177177
}

src/main/java/frc/robot/RobotContainer.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,11 @@ public void setLEDs() {
163163
/**
164164
* Called by Robot at teleopInit()
165165
*/
166+
public void resetShooter() {
167+
mShooter.stopTrigger();
168+
new StopShooter(mShooter).andThen( new ResetHood(mShooter)).schedule();
169+
}
170+
166171
public void stopShooter() {
167172
mShooter.stopTrigger();
168173
new StopShooter(mShooter).schedule();

0 commit comments

Comments
 (0)