View Single Post
  #1   Spotlight this post!  
Unread 01-02-2012, 12:21
cilginbilgin cilginbilgin is offline
Registered User
FRC #2905
 
Join Date: Jan 2010
Location: Istanbul,Turkey
Posts: 188
cilginbilgin is a jewel in the roughcilginbilgin is a jewel in the roughcilginbilgin is a jewel in the roughcilginbilgin is a jewel in the rough
Question Autonomous with Ultrasonic sensor doesnt work!!

Here is the code I have written for autonomous. I want the robot to stop and the piston to extend when the ultrasonic sensor reads 40 inches. But it doesnt happen. We have tested the ultrasonic sensor and tuned it. We are sure that the distance ultrasonic sensor reads is true.

Can anyone tell me if the code is correct or wrong?
Thanks in advance.

http://imageshack.us/photo/my-images...tonomous2.png/

http://imageshack.us/photo/my-images...utonomous.png/
Reply With Quote