View Single Post
  #3   Spotlight this post!  
Unread 30-01-2014, 11:44
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,581
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: [cRIO] Robot Drive... Output not updated often enough.

Quote:
Originally Posted by Tanis View Post
Why are you delaying your operatorControl() loop?

I would remove the delay. It will cause a .1 second delay between your inputs and the robot's reaction.
A delay is necessary to avoid running the CPU at 100%. New data is received every 20ms, so a delay of 0.02 is appropriate. The Motor Safety will output the Output not updated enough if it doesn't receive an update every 100ms, so a delay of 0.1 seconds is too long.
Reply With Quote