Strange compiler error

I'm playing with staggering the firing of the two ping sensors because they both face forward, and I'm worried that echos from one might interfere with the other.

My objective is to have the robot sense which side the obstacle is crossing its path from, and turn away from the obstacle. I am finding that when I get a clean reading, it responds exactly as it should. However at times the reflection must be either marginal or causing cross interference between the sr-04 units, as it gets erroneous ping distance readings and the robot oscillates left and right.