-
public class DynamicCommand extends Command
Command for checking dynamic conditions on external systems.
These conditions can be changed in the gamepad state, environment or robot subsystems.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public class
DynamicCommand.DynamicCommandBuilder
-
Method Summary
Modifier and Type Method Description static DynamicCommand.DynamicCommandBuilder
when(Function<CommandConditionBuilder, Supplier<Boolean>> condition)
boolean
getIsTriggered()
Gets a value indicating whether or not command is supposed to execute based on its trigger condition. void
periodic()
Command periodic code while the command is running. boolean
getIsCompleted()
Gets a value indicating whether or not command is completed. -
-
Method Detail
-
when
static DynamicCommand.DynamicCommandBuilder when(Function<CommandConditionBuilder, Supplier<Boolean>> condition)
-
getIsTriggered
boolean getIsTriggered()
Gets a value indicating whether or not command is supposed to execute based on its trigger condition.
-
periodic
void periodic()
Command periodic code while the command is running.
-
getIsCompleted
boolean getIsCompleted()
Gets a value indicating whether or not command is completed.
-
-
-
-