File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change 3
3
import com .qualcomm .robotcore .eventloop .opmode .OpMode ;
4
4
import com .qualcomm .robotcore .hardware .HardwareMap ;
5
5
import org .firstinspires .ftc .teamcode .FTC_Library .Autonomous .Modules .Module ;
6
+ import org .firstinspires .ftc .teamcode .FTC_Library .Autonomous .Modules .Wait ;
6
7
import org .firstinspires .ftc .teamcode .FTC_Library .Robot .RobotBase ;
7
8
8
9
/**
@@ -70,6 +71,10 @@ public void loop() {
70
71
}
71
72
72
73
current = steps [currentStep ][currentOption ];//get new current module
74
+
75
+ if (current == null ) {//redefine null modules as a 1 milli wait
76
+ current = steps [currentStep ][currentOption ] = new Wait ().setWaitTime (1 );
77
+ }
73
78
current .init (robot , selectedOption , telemetry );//initialize it with the passed through option so it can be passed through multiple times
74
79
current .start ();//start current module
75
80
} else {
You can’t perform that action at this time.
0 commit comments