|
Re: SONAR Sensor Software Driver
Quote:
Originally Posted by B_Dubbs
Distance = 0
Distance = 5
Distance = 0
etc.
Does anyone know why t has these jumps to zero?
|
You'll need to provide more information for me to understand the problem. Is 5 the correct distance? Where does Ping_Sonar() and Get_Sonar_Distance() get called in your code? I seem to remember while developing the code that many print statements in the code cause bizarre results, watch out for that too.
__________________
"FIRST is like bling bling for the brain." - Woodie Flowers
|