Quote:
|
Originally Posted by P1h3r1e3d13
Has anyone tried using the VEX Ultrasonic sensor with EasyC for FRC? The GetUltrasonic command seems to be taking 1/4 - 1/2 second to execute (which causes big problems). Does it take that long for everyone else?
|
Question: is this the first time trying the sensor or has it been working and recently stopped working?
The ultrasonic sensor code will loop while it's getting no result from the sensor, then time out after 2 seconds. If you're seeing that, try checking the connections or the sensor - that the input port on the sensor is connected to the digital output port on the RC and the output port on the sensor is connected to the interrupt port on the RC (digital I/O port 1-6).
A bad connection will result in no returns from the sensor and the timeout will occur.