Advertisement
Guest User

Untitled

a guest
Feb 19th, 2018
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. static bool driving = false;
  2.  
  3. void drive(int left, int right){
  4. driving = true;
  5. motor[port1] = left;
  6. motor[port2] = right;
  7. driving = false;
  8.  
  9. }
  10.  
  11. task emergency(){
  12. while(true){
  13. if(driving){
  14.  
  15. }
  16. }
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement