Skip to content

Commit 0ca3e8f

Browse files
Update exampleWalking.groovy
1 parent fcbca80 commit 0ca3e8f

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

exampleWalking.groovy

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,19 @@ import com.neuronrobotics.sdk.addons.kinematics.IDriveEngine
33
import com.neuronrobotics.sdk.addons.kinematics.MobileBase
44
import com.neuronrobotics.sdk.addons.kinematics.math.TransformNR
55

6-
// code here
7-
86
return new com.neuronrobotics.sdk.addons.kinematics.IDriveEngine (){
97
IDriveEngine walking = ScriptingEngine.gitScriptRun("https://github.com/OperationSmallKat/Marcos.git", "MarcosWalk.groovy")
108
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")
1110

1211
@Override
1312
public void DriveArc(MobileBase base, TransformNR newPose, double seconds) {
14-
IDriveEngine engine=driving;
13+
IDriveEngine engine=fixed;
1514
if(base.getLegs().size()>0) {
1615
engine=walking;
17-
}else if(base.getSteerable().size()>0) {
18-
engine=driving;
1916
}else if(base.getDrivable().size()>0) {
17+
engine=fixed;
18+
}else if(base.getSteerable().size()>0) {
2019
engine=driving;
2120
}
2221
engine.DriveArc( base, newPose, seconds);

0 commit comments

Comments
 (0)