WPILibC++ 2024.3.2
|
A command that runs a TrapezoidProfile. More...
#include <frc2/command/TrapezoidProfileCommand.h>
Public Member Functions | |
TrapezoidProfileCommand (frc::TrapezoidProfile< Distance > profile, std::function< void(State)> output, std::function< State()> goal, std::function< State()> currentState, Requirements requirements={}) | |
Creates a new TrapezoidProfileCommand that will execute the given TrapezoidalProfile. More... | |
TrapezoidProfileCommand (frc::TrapezoidProfile< Distance > profile, std::function< void(State)> output, Requirements requirements={}) | |
Creates a new TrapezoidProfileCommand that will execute the given TrapezoidalProfile. More... | |
void | Initialize () override |
void | Execute () override |
void | End (bool interrupted) override |
bool | IsFinished () override |
Public Member Functions inherited from frc2::CommandHelper< Command, TrapezoidProfileCommand< Distance > > | |
CommandHelper ()=default | |
CommandPtr | ToPtr () &&override |
Additional Inherited Members | |
Protected Member Functions inherited from frc2::CommandHelper< Command, TrapezoidProfileCommand< Distance > > | |
std::unique_ptr< Command > | TransferOwnership () &&override |
A command that runs a TrapezoidProfile.
Useful for smoothly controlling mechanism motion.
This class is provided by the NewCommands VendorDep
|
inline |
Creates a new TrapezoidProfileCommand that will execute the given TrapezoidalProfile.
Output will be piped to the provided consumer function.
profile | The motion profile to execute. |
output | The consumer for the profile output. |
goal | The supplier for the desired state |
currentState | The current state |
requirements | The list of requirements. |
|
inline |
Creates a new TrapezoidProfileCommand that will execute the given TrapezoidalProfile.
Output will be piped to the provided consumer function.
profile | The motion profile to execute. |
output | The consumer for the profile output. |
requirements | The list of requirements. |
|
inlineoverride |
|
inlineoverride |
|
inlineoverride |
|
inlineoverride |