Thread: pic: auto code
View Single Post
  #2   Spotlight this post!  
Unread Yesterday, 19:01
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,954
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: pic: auto code

This code will execute only once at the beginning of Autonomous. If TEST happens to be true the instant the robot is Enabled, then it will start the motor and quit. The motor will continue running forever.

You need to put a while loop around the outside of this (TEST needs to be inside the loop, too). Give it a Wait of 10ms or so as well.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : Yesterday at 19:12.
Reply With Quote