Class LambdaStep
java.lang.Object
org.wildstang.framework.auto.AutoStep
org.wildstang.framework.auto.steps.LambdaStep
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionLambdaStep(LambdaStep.Procedure function, String name) Returns an AutoStep which runs a lambda function and then ends within the same cycle Used to create AutoSteps which only need to call a function of a subsystem without writing a new class Can be static fields of that subsystem -
Method Summary
Methods inherited from class org.wildstang.framework.auto.AutoStep
isFinished, setFinished, setFinished
-
Constructor Details
-
LambdaStep
Returns an AutoStep which runs a lambda function and then ends within the same cycle Used to create AutoSteps which only need to call a function of a subsystem without writing a new class Can be static fields of that subsystem- Parameters:
function- Lambda function to runname- Name of the step published on Smart Dashboard
-
-
Method Details
-
initialize
public void initialize()Description copied from class:AutoStepThis method is called once, when the step is first run. Use this method to set up anything that is necessary for the step.- Specified by:
initializein classAutoStep
-
update
public void update()Description copied from class:AutoStepThis method is called on the active step, once per call to RobotTemplate.autonomousPeriodic(). Steps will continue to have this method called until they set finished to true. Note: this method is first called right after initialize(), with no delay in between. -
toString
Description copied from class:AutoStepReturns the name of the AutoStep, used to uniquely identify the step.
-