View Single Post
  #4   Spotlight this post!  
Unread 14-03-2011, 11:05
Mark McLeod's Avatar
Mark McLeod Mark McLeod is online now
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: Sequencing Question

Yea, in the case of potential unfinished auto actions (PID loop not completing, encoder value not reached, etc.), adding a block in Teleop to initialize everything will safeguard against runaway motors and PID integral windup.

Two simple ways to set that up are:
  1. Programming->Synchronization->First Call?
  2. The Call Context global in the default Teleop Framework has an Init state.
Either of these can feed a Case statement that duplicates what you have in the last frame of your sequence in Autonomous to stop/halt/pause/wait.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 14-03-2011 at 11:08.
Reply With Quote