View Single Post
  #1   Spotlight this post!  
Unread 31-03-2014, 22:44
slhs slhs is offline
Registered User
FRC #4639
 
Join Date: Feb 2014
Location: Katy, Texas
Posts: 17
slhs is an unknown quantity at this point
Auto Ultrasonic Distance Sensor

So we are trying to code the robot to do forward from its starting position till it reaches a specific distance from the wall. We are using a MB1040 as the distance sensor. The code, which is attached, for some reason just makes the robot keep going forever forward. The sensor has been tested and it works perfectly. I'm sure I'm probably just missing something really stupid . Any help would be much appreciated.
Attached Thumbnails
Click image for larger version

Name:	Auto.PNG
Views:	67
Size:	17.1 KB
ID:	16738  Click image for larger version

Name:	Begin.PNG
Views:	50
Size:	8.7 KB
ID:	16739  
Reply With Quote