[examples] frisbeebot: Fix typo and reflow comments (NFC) (#3498)

This commit is contained in:
sciencewhiz
2021-08-01 07:17:51 -07:00
committed by GitHub
parent 4a944dc397
commit 2014115bca

View File

@@ -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(); },