View Single Post
  #14   Spotlight this post!  
Unread 20-03-2011, 18:44
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,112
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: Tracking down a stuttering JAG/CAM drive.

Quote:
Originally Posted by PhilBot View Post
So I slowly started stripping code out of my own app untill the stutter went away (boy I wish I undserstod the safety code)
The safety code is easy to understand. By default, drive motors will be be shut off if you don't keep setting their value at least every tenth of a second. That's it.

I have two questions about your compressor code. First, why are you storing the compressor reference in a global variable instead of using the refnum registry? Second, why are you reading the compressor status and not doing anything with the result?
Reply With Quote