View Single Post
  #2   Spotlight this post!  
Unread 21-03-2009, 00:50
Green2 Green2 is offline
Registered User
FRC #2338
 
Join Date: Mar 2009
Location: Oswego
Posts: 20
Green2 is an unknown quantity at this point
Re: problem with passing doubles back into the "TeleOp Execute" loop

The code is currently set to run in parallel loops. Because they are set to never "stop" executing, the loop never really ends and thus will not pass values outside of the loop.

To get around this, either move the traction control code to inside the teleop loop or set up global variables. Write to the globals in the traction control loop and read it in the teleop loop.
Reply With Quote