diff --git a/wpilibcExamples/src/main/cpp/examples/Frisbeebot/include/RobotContainer.h b/wpilibcExamples/src/main/cpp/examples/Frisbeebot/include/RobotContainer.h index 2c3c26735d..26714fe643 100644 --- a/wpilibcExamples/src/main/cpp/examples/Frisbeebot/include/RobotContainer.h +++ b/wpilibcExamples/src/main/cpp/examples/Frisbeebot/include/RobotContainer.h @@ -56,8 +56,7 @@ class RobotContainer { // Shoot for the specified time frc2::WaitCommand(ac::kAutoShootTimeSeconds)} // Add a timeout (will end the command if, for instance, the shooter - // never gets up to - // speed) + // never gets up to speed) .WithTimeout(ac::kAutoTimeoutSeconds) // When the command ends, turn off the shooter and the feeder .AndThen([this] { @@ -73,15 +72,14 @@ class RobotContainer { frc2::InstantCommand m_stopShooter{[this] { m_shooter.Disable(); }, {&m_shooter}}; - // Shoots if the shooter wheen has reached the target speed + // Shoots if the shooter wheel has reached the target speed frc2::ConditionalCommand m_shoot{ // Run the feeder frc2::InstantCommand{[this] { m_shooter.RunFeeder(); }, {&m_shooter}}, // Do nothing frc2::InstantCommand(), // Determine which of the above to do based on whether the shooter has - // reached the - // desired speed + // reached the desired speed [this] { return m_shooter.AtSetpoint(); }}; frc2::InstantCommand m_stopFeeder{[this] { m_shooter.StopFeeder(); },