For single action commands such as motors on or fire solenoid, use InstantCommand instead of CommandBase to extend from. The action is then placed in the initialize() method and execute() is not used.
[ ] ChangeIntakeSolenoidState.java - change to InstantCommand. Imagine what the robot is doing with intake.toggleSolenoidState() being called every 20ms.
[ ] IntakeCells.java - looks like another InstantCommand.
[ ] ReverseIntakeCells.java - another InstantCommand.
For single action commands such as motors on or fire solenoid, use
InstantCommand
instead ofCommandBase
to extend from. The action is then placed in theinitialize()
method andexecute()
is not used.InstantCommand
. Imagine what the robot is doing withintake.toggleSolenoidState()
being called every 20ms.InstantCommand
.InstantCommand
.InstantCommand
.