2018-01-06 03:24:23 +01:00
|
|
|
# Three Point Turn Activity 2
|
|
|
|
|
|
|
|
```blocks
|
2018-01-31 17:28:00 +01:00
|
|
|
brick.buttonEnter.onEvent(ButtonEvent.Bumped, function () {
|
2018-01-06 03:24:23 +01:00
|
|
|
motors.largeBC.tank(75, 30)
|
2018-02-15 01:05:31 +01:00
|
|
|
pause(1500)
|
2018-01-06 03:24:23 +01:00
|
|
|
motors.largeBC.tank(-30, -75)
|
|
|
|
sensors.ultrasonic4.pauseUntil(UltrasonicSensorEvent.ObjectNear);
|
|
|
|
motors.largeBC.tank(0, 0)
|
2018-02-15 01:05:31 +01:00
|
|
|
pause(1000)
|
2018-01-06 03:24:23 +01:00
|
|
|
motors.largeBC.tank(50, 50)
|
2018-02-15 01:05:31 +01:00
|
|
|
pause(3000)
|
2018-01-06 03:24:23 +01:00
|
|
|
})
|
|
|
|
```
|