Quote:
Originally Posted by sukhjinder564
I would recommend simplifying the operator control for now.
I have never used the Timer function in teleop, so this timer may be throwing your code off, but if the code is not being reached, make sure the conditions of the while loop are being satisfied. Or you could just remove the while loop entirely and see how that works.
This may or may not work for SimpleRobot, as I always use IterativeRobot.
Does the operatorControl() function run periodically?
|
That is appropriate advice for IterativeRobot, but not SimpleRobot. In simpleRobot, operatorControl is called once. It is the users responsibility to provide a while loop and to provide a delay (to avoid pegging the CPU).