pxt-ev3/docs/coding/three-point-turn-3.md
Peli de Halleux ea46f1cbc7
3 activies from curriculum (#194)
* 3 activies from curriculum

* fixing style
2018-01-05 18:24:23 -08:00

420 B

Three Point Turn Activity 3

brick.buttonEnter.onEvent(ButtonEvent.Click, function () {
    motors.largeBC.tank(75, 30)
    loops.pause(1500)
    motors.largeBC.tank(-30, -75)
    sensors.ultrasonic4.pauseUntil(UltrasonicSensorEvent.ObjectNear);
    motors.largeBC.tank(0, 0)
    music.playSoundEffect(sounds.animalsDogBark1)
    loops.pause(1000)
    motors.largeBC.tank(50, 50)
    loops.pause(3000)
})