LambdaCommand
A Command that is created using lambdas to define each function instead of manually overriding the functions.
Author
BeepBot99
Inheritors
Properties
Whether this command can be stopped due to a conflict of Subsystems.
Whether this command has completed running. Often implemented using a getter function, although it can be set directly for commands that stop instantly or never stop. Please note that in certain circumstances the command will be stopped before this evaluates to true, most notably during subsystem conflicts or when the OpMode has been stopped.
A set of all Subsystems this command implements.
Functions
Adds a subsystem to the set of subsystems that the command implements
Adds subsystems to the set of subsystems that the command implements
Returns a SequentialGroup with a Delay and then this command
Returns a ParallelGroup with this command and an arbitrary number of other commands
Returns a ParallelDeadlineGroup with this command as the deadline
Returns a ParallelRaceGroup with this command and a Delay of time
Returns a PerpetualCommand that wraps this command
Returns a ParallelRaceGroup with this command and an arbitrary number of other commands
Sets whether the command can be stopped due to an overlap of subsystems
Sets the function that returns whether the command has finished running
Sets the function that is called when the command is first scheduled
Sets the function that is called when the command is finished Receives a boolean that is whether the command has been interrupted
Sets the subsystem that the command implements
Sets the subsystems that the command implements
Sets the function that is called repeatedly while the command is running
Returns a SequentialGroup with this command and an arbitrary number of other commands
Returns a SequentialGroup with this command and then a Delay
Returns a ParallelDeadlineGroup with this command and the passed command as the deadline