View Single Post
  #27   Spotlight this post!  
Unread 21-04-2012, 14:48
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,926
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Inovation First FRC Robot Controller

Did you just make that function up?

Normally, you don't want to delay any of this code.
Because this was used for FRC, there is a built-in safety that will disable the PWM outputs if the code is delayed.
In the case of just blinking the OI lights you probably won't notice that, though.

The Teleop routine is set to execute every 26.2ms.
If you want to time a blink, then just use a counter to toggle the LED value every 38 counts for a one second blink.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 21-04-2012 at 15:44. Reason: Forgot you were using Watson's code rather that the IFI default code