View Single Post
  #4   Spotlight this post!  
Unread 19-02-2016, 21:05
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
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.