@@ -167,23 +167,23 @@ The ``StartEndCommand`` class (`Java <https://first.wpi.edu/FRC/roborio/release/
167167 .. code-tab :: java
168168
169169 new StartEndCommand(
170- // Start driving forward at the start of the command
171- () -> m_robotDrive.arcadeDrive(kAutoDriveSpeed, 0 ),
172- // Stop driving at the end of the command
173- () -> m_robotDrive.arcadeDrive(0, 0),
174- // Requires the drive subsystem
175- m_robotDrive
170+ // Start a flywheel spinning at 50% power
171+ () -> m_shooter.shooterSpeed(0.5 ),
172+ // Stop the flywheel at the end of the command
173+ () -> m_shooter.shooterSpeed(0. 0),
174+ // Requires the shooter subsystem
175+ m_shooter
176176 )
177177
178178 .. code-tab :: c++
179179
180180 frc2::StartEndCommand(
181- // Start driving forward at the start of the command
182- [this] { m_drive.ArcadeDrive(ac::kAutoDriveSpeed, 0 ); },
183- // Stop driving at the end of the command
184- [this] { m_drive.ArcadeDrive(0, 0); },
185- // Requires the drive subsystem
186- {&m_drive }
181+ // Start a flywheel spinning at 50% power
182+ [this] { m_shooter.shooterSpeed(0.5 ); },
183+ // Stop the flywheel at the end of the command
184+ [this] { m_shooter.shooterSpeed(0. 0); },
185+ // Requires the shooter subsystem
186+ {&m_shooter }
187187 )
188188
189189FunctionalCommand
0 commit comments