Thread: Rookie help
View Single Post
  #19   Spotlight this post!  
Unread 21-12-2004, 14:59
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,940
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: Rookie help

Quote:
Originally Posted by doyler
How would i make the program loop somewhat faster
Also, what will the servo do when the program executes so i know i did it right
The first sound you heard was the servo moving to it's "0" position.
The servo will then take 1.4 minutes to move very slowly through a 60 degree turn before it quickly whips back to the "0" position and repeats.

You can speed this up by changing the delay we built in.
Code:
if (counter < 20) // about 1/3 second in the slow loop for one ~60/255 degree turn
Make it "counter < 2" and it'll take about 17ms to complete a cycle.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 21-12-2004 at 16:44. Reason: mixed up my numbers: Slow loop = 59/sec in EDU 38 in FRC