File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -3,20 +3,19 @@ import com.neuronrobotics.sdk.addons.kinematics.IDriveEngine
3
3
import com.neuronrobotics.sdk.addons.kinematics.MobileBase
4
4
import com.neuronrobotics.sdk.addons.kinematics.math.TransformNR
5
5
6
- // code here
7
-
8
6
return new com.neuronrobotics.sdk.addons.kinematics.IDriveEngine (){
9
7
IDriveEngine walking = ScriptingEngine . gitScriptRun(" https://github.com/OperationSmallKat/Marcos.git" , " MarcosWalk.groovy" )
10
8
IDriveEngine driving = ScriptingEngine . gitScriptRun(" https://github.com/NeuronRobotics/NASACurisoity.git" , " DriveEngine.groovy" )
9
+ IDriveEngine fixed = ScriptingEngine . gitScriptRun(" https://github.com/madhephaestus/VexVitaminsRobot.git" , " FixedDriveEngine.groovy" )
11
10
12
11
@Override
13
12
public void DriveArc (MobileBase base , TransformNR newPose , double seconds ) {
14
- IDriveEngine engine= driving ;
13
+ IDriveEngine engine= fixed ;
15
14
if (base. getLegs(). size()> 0 ) {
16
15
engine= walking;
17
- }else if (base. getSteerable(). size()> 0 ) {
18
- engine= driving;
19
16
}else if (base. getDrivable(). size()> 0 ) {
17
+ engine= fixed;
18
+ }else if (base. getSteerable(). size()> 0 ) {
20
19
engine= driving;
21
20
}
22
21
engine.DriveArc ( base, newPose, seconds);
You can’t perform that action at this time.
0 commit comments