TI-Innovator Rover demo program #2 [Obstacles] - APMEP 2017 Nantes
Channel:
Subscribers:
499
Published on ● Video Link: https://www.youtube.com/watch?v=Z3EYUBieQFs
The code below tries to avoid up to 3 different obstacles.
----------
1→O
Send("CONNECT RV")
While O≤3
Send("READ RV.RANGER")
Get(D)
If D≥0.3
Then
Send("READ RV.MOVING")
Get(D)
If D=0
Send("SET RV FORWARD")
Else
O+1→O
Send("SET RV.COLOR.RED 255 TIME 3")
Send("SET SOUND TO 440 TIME 3")
Send("SET RV STOP")
Send("SET RV BACKWARD 0.25")
If O≤3
Send("SET RV LEFT 45 DEGREES")
End
End
Send("SET RV ANGLE 180")
----------
Source : https://education.ti.com/-/media/ti/files/resources/rover/ti-innovator-rover-demo-programs-84.8xp