Template Class GovernorLimitedCommand
Defined in File governor_limited_command.hpp
Inheritance Relationships
Base Type
public tap::control::Command
(Class Command)
Class Documentation
-
template<size_t NUM_CONDITIONS>
class GovernorLimitedCommand : public tap::control::Command A command that runs another command, but will only execute the command when some list of governors all allow it to. All governors also have control over ending the command. If one of the governors believes the command should be finished, the command will be finished.
- Template Parameters:
NUM_CONDITIONS – The number of governors in the governor list.
Public Functions
-
inline GovernorLimitedCommand(const std::vector<Subsystem*> &subRequirements, Command &command, const std::array<CommandGovernorInterface*, NUM_CONDITIONS> &commandGovernorList)
-
inline virtual const char *getName() const override
-
inline virtual bool isReady() override
-
inline virtual void initialize() override
-
inline virtual void execute() override
-
inline virtual void end(bool interrupted) override
-
inline virtual bool isFinished() const override