View Single Post
  #2   Spotlight this post!  
Unread 21-02-2012, 08:23
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: Jittery Autonomous Code {Java}

I have a thought.

Your while() loop is running as fast as it can, with no pauses. It might be starving the communication task, which could result in the hardware occasionally shutting down the motor outputs due to a lack of communication. Put a short wait (ten milliseconds might be good) inside the loop and see if that helps.