View Single Post
  #2   Spotlight this post!  
Unread 30-01-2015, 19:04
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,795
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: Encoder in Autonomous

Is this the code you dropped into Autonomous?
Did you add a loop (with a Wait please)? Otherwise it gets called a single time, then never again in Autonomous.
Without an Autonomous loop your Arm will just keep running forever.

Teleop itself gets called every 20ms (optimally), so this code in Teleop gets called over and over again.
Autonomous is called only once, and you have to supply your own loops to keep it going and checking.


I'd also call Config Timer once in Begin, rather than every time you get an encoder value.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 30-01-2015 at 19:09.
Reply With Quote