View Single Post
  #34   Spotlight this post!  
Unread 04-01-2015, 21:31
Arhowk's Avatar
Arhowk Arhowk is offline
FiM CSA
AKA: Jake Niman
FRC #1684 (The Chimeras) (5460 Mentor)
 
Join Date: Jan 2013
Rookie Year: 2013
Location: Lapeer
Posts: 543
Arhowk is a splendid one to beholdArhowk is a splendid one to beholdArhowk is a splendid one to beholdArhowk is a splendid one to beholdArhowk is a splendid one to beholdArhowk is a splendid one to behold
Re: Making sure EVERY Team can do Auto

Quote:
Originally Posted by Dancin103 View Post
This is a great idea - even putting it on CD...
it wouldn't be that hard to type in the pits

Code:
public void autonomousInit(){
if(!autonThread.isAlive()) autonThread.start();
autonThread.notify();
}
Thread autonThread = new Thread(){
public void run(){
while(true){
try{
    robotDrive.arcadeDrive(1,0);
    sleep(5000);
    robotDrive.arcadeDrive(0,0);
sleep(Integer.MAX_VALUE);
}catch(Exception ex){
}
}
}
sorry for the indenting but i dd it in like 30 seconds in the text editor

e/ my bad some syntax mistakes

Last edited by Arhowk : 04-01-2015 at 21:38.