WPILibC++ 2023.4.3-108-ge5452e3
|
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::initializer_list< Subsystem * > requirements) | |
Creates a new TrapezoidProfileCommand that will execute the given TrapezoidalProfile. More... | |
TrapezoidProfileCommand (frc::TrapezoidProfile< Distance > profile, std::function< void(State)> output, std::span< Subsystem *const > 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< CommandBase, TrapezoidProfileCommand< Distance > > | |
CommandHelper ()=default | |
CommandPtr | ToPtr () &&override |
Additional Inherited Members | |
Protected Member Functions inherited from frc2::CommandHelper< CommandBase, 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. |
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 |