|
| ProfiledPIDCommand (frc::ProfiledPIDController< Distance > controller, std::function< Distance_t()> measurementSource, std::function< State()> goalSource, std::function< void(double, State)> useOutput, std::initializer_list< Subsystem * > requirements) |
| Creates a new PIDCommand, which controls the given output with a ProfiledPIDController. More...
|
|
| ProfiledPIDCommand (frc::ProfiledPIDController< Distance > controller, std::function< Distance_t()> measurementSource, std::function< State()> goalSource, std::function< void(double, State)> useOutput, std::span< Subsystem *const > requirements={}) |
| Creates a new PIDCommand, which controls the given output with a ProfiledPIDController. More...
|
|
| ProfiledPIDCommand (frc::ProfiledPIDController< Distance > controller, std::function< Distance_t()> measurementSource, std::function< Distance_t()> goalSource, std::function< void(double, State)> useOutput, std::initializer_list< Subsystem * > requirements) |
| Creates a new PIDCommand, which controls the given output with a ProfiledPIDController. More...
|
|
| ProfiledPIDCommand (frc::ProfiledPIDController< Distance > controller, std::function< Distance_t()> measurementSource, std::function< Distance_t()> goalSource, std::function< void(double, State)> useOutput, std::span< Subsystem *const > requirements={}) |
| Creates a new PIDCommand, which controls the given output with a ProfiledPIDController. More...
|
|
| ProfiledPIDCommand (frc::ProfiledPIDController< Distance > controller, std::function< Distance_t()> measurementSource, State goal, std::function< void(double, State)> useOutput, std::initializer_list< Subsystem * > requirements) |
| Creates a new PIDCommand, which controls the given output with a ProfiledPIDController with a constant goal. More...
|
|
| ProfiledPIDCommand (frc::ProfiledPIDController< Distance > controller, std::function< Distance_t()> measurementSource, State goal, std::function< void(double, State)> useOutput, std::span< Subsystem *const > requirements={}) |
| Creates a new PIDCommand, which controls the given output with a ProfiledPIDController with a constant goal. More...
|
|
| ProfiledPIDCommand (frc::ProfiledPIDController< Distance > controller, std::function< Distance_t()> measurementSource, Distance_t goal, std::function< void(double, State)> useOutput, std::initializer_list< Subsystem * > requirements) |
| Creates a new PIDCommand, which controls the given output with a ProfiledPIDController with a constant goal. More...
|
|
| ProfiledPIDCommand (frc::ProfiledPIDController< Distance > controller, std::function< Distance_t()> measurementSource, Distance_t goal, std::function< void(double, State)> useOutput, std::span< Subsystem *const > requirements={}) |
| Creates a new PIDCommand, which controls the given output with a ProfiledPIDController with a constant goal. More...
|
|
| ProfiledPIDCommand (ProfiledPIDCommand &&other)=default |
|
| ProfiledPIDCommand (const ProfiledPIDCommand &other)=default |
|
void | Initialize () override |
|
void | Execute () override |
|
void | End (bool interrupted) override |
|
frc::ProfiledPIDController< Distance > & | GetController () |
| Returns the ProfiledPIDController used by the command. More...
|
|
Public Member Functions inherited from frc2::CommandHelper< CommandBase, ProfiledPIDCommand< Distance > > |
| CommandHelper ()=default |
|
CommandPtr | ToPtr () &&override |
|
template<class Distance>
class frc2::ProfiledPIDCommand< Distance >
A command that controls an output with a ProfiledPIDController.
Runs forever by default - to add exit conditions and/or other behavior, subclass this class. The controller calculation and output are performed synchronously in the command's execute() method.
This class is provided by the NewCommands VendorDep
- See also
- ProfiledPIDController<Distance>