View Single Post
  #3   Spotlight this post!  
Unread 12-02-2011, 09:18
baronep's Avatar
baronep baronep is offline
Student President
FRC #2848 (Jesuit All-Sparks)
Team Role: Leadership
 
Join Date: Jan 2010
Rookie Year: 2010
Location: Dallas TX
Posts: 167
baronep is on a distinguished road
Re: Autonomous-Analog Signals?

Careful with the above suggestion. Using a while loop should work fine in autonomous but realize that you cannot reuse this code in teleop mode. You cant use these loops in teleop mode because while you are evaluating the loop, the cRIO isn't updating any of the PWM ouputs. This will consequently cause a watchdog error. Instead there is a block under timing which evaluates a set time and outputs a boolean when it has elapsed and can be easily reset.

Hope this helps,
baronep
Reply With Quote