So while working with a mentor of mine and trying to program our three photocells we have ran into some problems. The tracking is working right, but it won’t track at full speed. It sorta jumps or pulses. It jumped or pulsed 18 times in 15 seconds. so 1.2 times a second. Could this be a problem with the Ultrasonic Rangefinder? If not i would still like some guidence towards fixing this problem. Thank you everyone in advanced any help is appreciated. Also we are using a gyro, and the camera in adddition to the ultrasonic rangefinder and photocells. Oh and for some more info the counter class has some errors in the diagnostics on the driver station.
MyRobot.cpp (5.82 KB)
MyRobot.cpp (5.82 KB)
Don’t understand what you were saying. What do you mean by “sorta jumps or pulses”? Looking at your code, you have two ultrasonic sensors. The first thing come to mind was they could interfere each other (i.e. one of them pinged and the other one picked up the echo). But searching through the code, I don’t see the ultrasonic sensors being used, at least not controlling any of the driving. They were instantiated but never used except in print statements. Did you mean the numbers printed on the LCD are jumping? If so, it could be due to the two interfere with each other.