Guest User

Untitled

a guest
Mar 24th, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. task main()
  2. {
  3.  
  4. while (1==1)
  5. {
  6. if(sensorvalue(upmotor)== 1)
  7. {
  8. motor [armMotor] = 40;
  9. }
  10. else if (SensorValue(downmotor)==1)
  11. {
  12. motor[armMotor]= -40;
  13. }
  14. else
  15. {
  16. motor[armMotor]=0;
  17. }
  18. }
  19. }
Add Comment
Please, Sign In to add comment