RIT VEXU Core API
|
#include <flywheel_commands.h>
Inherits AutoCommand.
Public Member Functions | |
WaitUntilUpToSpeedCommand (Flywheel &flywheel, int threshold_rpm) | |
bool | run () override |
AutoCommand that listens to the Flywheel and waits until it is at its target speed +/- the specified threshold
WaitUntilUpToSpeedCommand::WaitUntilUpToSpeedCommand | ( | Flywheel & | flywheel, |
int | threshold_rpm ) |
Creat a WaitUntilUpToSpeedCommand
flywheel | the flywheel system we are commanding |
threshold_rpm | the threshold over and under the flywheel target RPM that we define to be acceptable |
|
override |
Run spin_manual Overrides run from AutoCommand