|
Re: robot drive isn't running fast enough...
Neither case structures nor the loop have much overhead. But if you add code that delays teleop you will see this. If this happens using a loop, it isn't actually the loop that is the problem.
In this case, the issue is that the Mecanum is only called when button 1 is pressed. I can't see the code in the other case, but assume it is not calling the Mecanum Update. If you call teleop but it doesn't call Update for 100ms, that will still result in the safety mechanism halting the motors.
Greg McKaskle
|