Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- task main()
- {
- wait(4.0);
- while(1==1)
- {
- if (SensorValue(Mlinefollower)>800)
- {
- startMotor(Rmotor, 66);
- startMotor(Lmotor, 60);
- }
- if (SensorValue(Rlinefollower)>800)
- {
- startMotor(Rmotor, -30);
- startMotor(Lmotor, 40);
- }
- if (SensorValue(Llinefollower)>800)
- {
- startMotor(Rmotor, 40);
- startMotor(Lmotor, -30);
- }
- if (SensorValue(Mlinefollower)<250 && SensorValue(Rlinefollower)<250 && SensorValue(Llinefollower)<250)
- {
- motor(Rmotor)=0;
- motor(Lmotor)=0;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement