Quote:
Originally Posted by Dancin103
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