Advertisement
Muribot_Maker

IR Line Following Demo by Sabrina S.

May 6th, 2015
310
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.20 KB | None | 0 0
  1. if(GetDist(0) > 0)
  2.     {
  3.         if(GetDist(1) > 0)
  4.         {
  5.             Move(20, 70);
  6.         } else {
  7.             Move(-20, 20);
  8.         }
  9.     } else {
  10.         if(GetDist(1) > 0)
  11.         {  
  12.             Move(70, 20);
  13.         } else {
  14.             Move(-20, 20);
  15.         }
  16.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement