View Single Post
  #1   Spotlight this post!  
Unread 01-08-2013, 04:40 PM
sretter's Avatar
sretter sretter is offline
Registered User
AKA: Shaked
FRC #2231 (OnyxTronix)
Team Role: Leadership
 
Join Date: Jan 2011
Rookie Year: 2010
Location: Shoham
Posts: 33
sretter is on a distinguished road
Vision Processing with Crio

Hello,
I was looking at http://wpilib.screenstepslive.com/s/...95-c-java-code
and came across this information: "The code will execute continuously, as quickly as possible, resulting in 100% usage of the cRIO CPU. When integrating this code into a different robot framework or integrating other team code, teams should make sure to add waits as appropriate and may wish to reduce the rate the code attempts to process at (processing every X loops in the Iterative Robot framework for example or every X milliseconds in the Command framework)."
And I was wondering how do I actually add the waits(Our team is workling on the command based robot with Java),
For example: I have a Drive System subsystem with a command DriveWithJoystick, and I want to add another subsystem that take care of vision processing- which let's say has a command FindTargets and I want to be able to use FindTargets without ruining DriveWithJoystick,
Now where do I add the waits(my guess would be in the execute() method of getTarget) and what would I write?

Thanks, help would be greatly appreciated!
Reply With Quote