Advertisement
Guest User

Untitled

a guest
Jan 27th, 2020
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. Programming Things Assignment 1 Wiki
  2.  
  3. Task 1 - Control Zumo using WASD:
  4. I completed this task by creating code to wait for a serial input and then using a switch statement to determine as to what would be done when serial input was received. I declared a variable motorSpeed to help with setting the motorSpeed for the different inputs. W and S were used to control forward and backwards respectively and the zumo would continue in these directions unless another serial input was received. Input of A and D turned the zumo left and right respectively and q was used to stop.
  5.  
  6. Task 2
  7.  
  8. Task 3
  9.  
  10. Task 4
  11.  
  12. Task 5
  13.  
  14. Task 6
  15.  
  16. Task 7
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement