View Single Post
  #2   Spotlight this post!  
Unread 21-06-2014, 21:13
randantor randantor is offline
Registered User
AKA: James Y
FRC #0624 (CRyptonite)
Team Role: Alumni
 
Join Date: Jun 2013
Rookie Year: 2012
Location: Katy, TX
Posts: 48
randantor is a glorious beacon of lightrandantor is a glorious beacon of lightrandantor is a glorious beacon of lightrandantor is a glorious beacon of lightrandantor is a glorious beacon of lightrandantor is a glorious beacon of light
Re: Field Timing vs. Local Timing

It's unlikely that the field is affecting your timing. Whether on the field or in testing, timers in your robot code should act the same; there's no difference in what processing happens where. Instead I would look at your cRIO CPU usage. If you're consistently maxing the robot CPU, it will throw off any timing you have in your code because the cRIO is unable to keep up with time constraints. If enabling cheesyvision makes your timing worse, it sounds to me like whatever code you have is running at 100% CPU, and adding the cheesyvision receiver is just woresning it by increasing the CPU load.

Watch your CPU usage while running autonomous, and if the CPU is running at 100% check for code errors showing up on the diagnostics tab of the driver station, and if there are no errors causing a CPU spike consider slowing down loops that you have running, and make sure that no loops are running without a delay.
Reply With Quote