We also had similar problems with our robot going crazy with the tracking code...but then we realized our IR sensors weren't plugged in. But FYI, i think servos are supposed to plug in to PWMs 3 and 4. Your robot was going crazy because the pwm values were switching back and forth because the program thought they were servos and was sweeping the field with them...
