|
Re: Losing Communications Code Issue?
Do you really want to do the camera1/server initialization every time through the operatorControl() loop?
I'm pretty sure you do not want to put all those Timer.delay() calls in there. Every time you activate your pusher, or your slide limit is hit, you're going to stall the code and lose communication. If you need to do timed sequences like that, they need to go in a parallel task outside the loop, or you need to implement them as a state machine that checks the clock to know when to step to the next state.
|