Template Class GovernorWithFallbackCommand

Inheritance Relationships

Base Type

Class Documentation

template<std::size_t NUM_CONDITIONS>
class GovernorWithFallbackCommand : public tap::control::Command

A command that alternates between two commands based on the state of a list of governors. One of the two commands is selected in the isReady phase of the Command, at which point that command will be executed until its completion.

Template Parameters:

NUM_CONDITIONS – The number of governors in the governor list.

Public Functions

inline GovernorWithFallbackCommand(std::vector<Subsystem*> subRequirements, Command &commandWhenGovernorsReady, Command &fallbackCommand, const std::array<CommandGovernorInterface*, NUM_CONDITIONS> &commandGovernorList, const bool stopFallbackCommandIfGovernorsReady = false)
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