|
| | ProfiledPIDCommand (frc::ProfiledPIDController< Distance > controller, std::function< Distance_t()> measurementSource, std::function< State()> goalSource, std::function< void(double, State)> useOutput, Requirements requirements={}) |
| | Creates a new PIDCommand, which controls the given output with a ProfiledPIDController.
|
| |
| | ProfiledPIDCommand (frc::ProfiledPIDController< Distance > controller, std::function< Distance_t()> measurementSource, std::function< Distance_t()> goalSource, std::function< void(double, State)> useOutput, Requirements requirements={}) |
| | Creates a new PIDCommand, which controls the given output with a ProfiledPIDController.
|
| |
| | ProfiledPIDCommand (frc::ProfiledPIDController< Distance > controller, std::function< Distance_t()> measurementSource, State goal, std::function< void(double, State)> useOutput, Requirements requirements={}) |
| | Creates a new PIDCommand, which controls the given output with a ProfiledPIDController with a constant goal.
|
| |
| | ProfiledPIDCommand (frc::ProfiledPIDController< Distance > controller, std::function< Distance_t()> measurementSource, Distance_t goal, std::function< void(double, State)> useOutput, Requirements requirements={}) |
| | Creates a new PIDCommand, which controls the given output with a ProfiledPIDController with a constant goal.
|
| |
| | 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.
|
| |
Public Member Functions inherited from frc2::CommandHelper< Command, 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>