RIT VEXU Core API
Loading...
Searching...
No Matches
WaitUntilUpToSpeedCommand Class Reference

#include <flywheel_commands.h>

Inherits AutoCommand.

Public Member Functions

 WaitUntilUpToSpeedCommand (Flywheel &flywheel, int threshold_rpm)
 
bool run () override
 

Detailed Description

AutoCommand that listens to the Flywheel and waits until it is at its target speed +/- the specified threshold

Constructor & Destructor Documentation

◆ WaitUntilUpToSpeedCommand()

WaitUntilUpToSpeedCommand::WaitUntilUpToSpeedCommand ( Flywheel & flywheel,
int threshold_rpm )

Creat a WaitUntilUpToSpeedCommand

Parameters
flywheelthe flywheel system we are commanding
threshold_rpmthe threshold over and under the flywheel target RPM that we define to be acceptable

Member Function Documentation

◆ run()

bool WaitUntilUpToSpeedCommand::run ( )
override

Run spin_manual Overrides run from AutoCommand

Returns
true when execution is complete, false otherwise

The documentation for this class was generated from the following files: