renaming 'set speed' to 'run' (#327)

This commit is contained in:
Peli de Halleux authored and GitHub committed 2018-02-19 07:35:08 -08:00
1 parent 3b6cfed5b2
commit fad4ca98db
41 files changed
+177 -177

No files matched your search

+8 -8
View File
@@ -213,13 +213,13 @@ music.playSoundEffect(sounds.systemGeneralAlert)
}
while (true) {
while (true) { sensors.color3.pauseForLight(LightIntensityMode.Reflected, LightCondition.Bright)
motors.largeB.setSpeed(10)
motors.largeC.setSpeed(-10)
motors.largeB.run(10)
motors.largeC.run(-10)
}
while (true) {
sensors.color3.pauseForLight(LightIntensityMode.Reflected, LightCondition.Bright)
motors.largeA.setSpeed(-10)
motors.largeA.setSpeed(10)
motors.largeA.run(-10)
motors.largeA.run(10)
}
}
```
@@ -235,13 +235,13 @@ You will need to constantly debug your program in order to make your robot trave
```blocks
while (true) {
while (true) { sensors.color3.pauseForLight(LightIntensityMode.Reflected, LightCondition.Bright)
motors.largeB.setSpeed(10)
motors.largeC.setSpeed(-10)
motors.largeB.run(10)
motors.largeC.run(-10)
}
while (true) {
sensors.color3.pauseForLight(LightIntensityMode.Reflected, LightCondition.Bright)
motors.largeB.setSpeed(-10)
motors.largeC.setSpeed(10)
motors.largeB.run(-10)
motors.largeC.run(10)
}
}
```