|
| PIDSubsystem (frc::PIDController controller, double initialPosition=0) |
| Creates a new PIDSubsystem.
|
|
void | Periodic () override |
| This method is called periodically by the CommandScheduler.
|
|
void | SetSetpoint (double setpoint) |
| Sets the setpoint for the subsystem.
|
|
double | GetSetpoint () const |
| Gets the setpoint for the subsystem.
|
|
virtual void | Enable () |
| Enables the PID control.
|
|
virtual void | Disable () |
| Disables the PID control.
|
|
bool | IsEnabled () |
| Returns whether the controller is enabled.
|
|
frc::PIDController & | GetController () |
| Returns the PIDController.
|
|
void | InitSendable (wpi::SendableBuilder &builder) override |
| Initializes this Sendable object.
|
|
std::string | GetName () const override |
| Gets the name of this Subsystem.
|
|
void | SetName (std::string_view name) |
| Sets the name of this Subsystem.
|
|
std::string | GetSubsystem () const |
| Gets the subsystem name of this Subsystem.
|
|
void | SetSubsystem (std::string_view name) |
| Sets the subsystem name of this Subsystem.
|
|
void | AddChild (std::string name, wpi::Sendable *child) |
| Associate a Sendable with this Subsystem.
|
|
virtual | ~Subsystem () |
|
virtual void | SimulationPeriodic () |
| This method is called periodically by the CommandScheduler.
|
|
template<std::derived_from< Command > T> |
void | SetDefaultCommand (T &&defaultCommand) |
| Sets the default Command of the subsystem.
|
|
void | SetDefaultCommand (CommandPtr &&defaultCommand) |
| Sets the default Command of the subsystem.
|
|
void | RemoveDefaultCommand () |
| Removes the default command for the subsystem.
|
|
Command * | GetDefaultCommand () const |
| Gets the default command for this subsystem.
|
|
Command * | GetCurrentCommand () const |
| Returns the command currently running on this subsystem.
|
|
void | Register () |
| Registers this subsystem with the CommandScheduler, allowing its Periodic() method to be called when the scheduler runs.
|
|
CommandPtr | RunOnce (std::function< void()> action) |
| Constructs a command that runs an action once and finishes.
|
|
CommandPtr | Run (std::function< void()> action) |
| Constructs a command that runs an action every iteration until interrupted.
|
|
CommandPtr | StartEnd (std::function< void()> start, std::function< void()> end) |
| Constructs a command that runs an action once and another action when the command is interrupted.
|
|
CommandPtr | RunEnd (std::function< void()> run, std::function< void()> end) |
| Constructs a command that runs an action every iteration until interrupted, and then runs a second action.
|
|
CommandPtr | StartRun (std::function< void()> start, std::function< void()> run) |
| Constructs a command that runs an action once, and then runs an action every iteration until interrupted.
|
|
CommandPtr | Defer (wpi::unique_function< CommandPtr()> supplier) |
| Constructs a DeferredCommand with the provided supplier.
|
|
virtual constexpr | ~Sendable ()=default |
|
constexpr | SendableHelper (const SendableHelper &rhs)=default |
|
constexpr | SendableHelper (SendableHelper &&rhs) |
|
constexpr SendableHelper & | operator= (const SendableHelper &rhs)=default |
|
constexpr SendableHelper & | operator= (SendableHelper &&rhs) |
|