PaulS:
What pins is the motor shield using? Putting the Ping sensors on PWM pins doesn't make a lot of sense.#define TRIGGER_PIN2 9
servo1.attach(9); // attaches the servo on pin 9 to the servo object
That doesn't look good.
Nice spot, thanks. I was just using the default pins described in the updated "NewPing" library. I will try these elsewhere.
PaulS:
Regardless of what you read from the sensors? Why?
What are these servos doing? servo1 and servo2 don't tell us squat.
These are not the motors interfacing with the sensors, they are performing another task (image tracking). I included a basic pan / tilt program for them to make sure I could get all the parts of my program running at the same time. This part will be using a CMUcam.
PaulS:
What values are you seeing?
Actually very accurate from both sensors. Both read individually and together down to 1cm and all the way to 200cm.