mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-19 00:41:43 +00:00
[examples] frisbeebot: Fix typo and reflow comments (NFC) (#3498)
This commit is contained in:
@@ -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(); },
|
||||
|
||||
Reference in New Issue
Block a user