|
Re: Autonomous with Ultrasonic sensor doesnt work!!
Your logic seems correct. However, you may not be getting anything from the ultrasonic sensor. See the attached image of the ultrasound example (the example can be found in (LabviewInstallFolder)/examples\FRC\Analog\EZ1 MB1010 Sonar Analog).
The example sets the averaging, sets sample rate, and then gets the voltage within the while loop. We tried moving the "set averaging" and "set sample rate" to Begin.vi, but the "analog get voltage" stopped working when we did that. Perhaps you need to add the "set averaging" and "set sample rate" into your while loop.
Can you describe the following:
1) How exactly is your robot behaving when you run autonomous?
2) When you run autonomous, what are you seeing from your "Distance" indicator?
__________________
-
An ounce of perception is worth a pound of obscure.
|