|
Re: Vex Ultrasonic Sensor not responding
The documentation claims 3cm up to 3m range. The source code toggles an LED when the values are (fltHiResCounter >= 16) && (fltHiResCounter <= 19). This seems to correspond with about the distance I was standing away from the sensor. 16cm to 19cm may not be the exact distance but seems to be close to where I am when it turns on and off.
I have added some printf statements to my code that print out once a second and the values seem close to distances I would expect. I still have more testing to do.
Vince
|