|
Re: Teleop Issue - Motor Control Seems to Freeze
Yes, the code you posted for Teleop will freeze your driver controls for the duration of the kick sequence.
Concentrate on fixing your Periodic code.
At what step does it stop working?
P.S.
The code left in Teleop on the outside of the Case statement (where you set the four solenoids) will override the Periodic code and mess up the kick sequence. Even without pulling the joystick trigger.
In Periodic that code outside the While loop only happens once per robot boot, but the Teleop outside code happens 50 times per second.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
Last edited by Mark McLeod : 13-04-2010 at 19:24.
|