Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- task main()
- { //Ligar Os Sensores
- SetSensorLight(IN_3);
- SetSensorLight(IN_2);
- while (true)
- {
- if(Sensor(IN_3)< 47 )
- {
- Off(OUT_C);
- OnFwd(OUT_A,67);
- }
- else
- {
- OnRev(OUT_A,67);
- }
- if(Sensor(IN_2)< 47 )
- {
- Off(OUT_A);
- OnFwd(OUT_C,67);
- }
- else
- {
- OnRev(OUT_C,67);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement