Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Java (http://www.chiefdelphi.com/forums/forumdisplay.php?f=184)
-   -   Autonomus Not Working :( (http://www.chiefdelphi.com/forums/showthread.php?t=128295)

anthonygraff24 28-03-2014 11:28

Autonomus Not Working :(
 
We have already played 3 matches today and our autonomus refuses to work. We've tried a few things already but I figured it couldn't hurt to ask here. Literally nothing happens in auto mode, but when it goes to teleop we're fine. I'll post the code and if someone could give me a hand that would be awesome! :D :D :D





public void autonomus(){


// getWatchdog().setEnabled(false);
robotDrive.setSafetyEnabled(false);
/* This section should drive forward at half power for 3 seconds */
robotDrive.drive(-.5, 0);
// long currentTime = System.currentTimeMillis();
// while (System.currentTimeMillis()-currentTime<3000) {}
Timer.delay(3);
/************************************************** ***************/

//The next line turns the drive motors off
robotDrive.drive(0, 0);

/* This section runs the gate for one second */
gate.drive(-.5, 0);
Timer.delay(1);
/*********************************************/

// The next line turns the gate motor off
gate.drive(0,0);
//getWatchdog().setEnabled(false);

}

RufflesRidge 28-03-2014 11:30

Re: Autonomus Not Working :(
 
Quote:

Originally Posted by anthonygraff24 (Post 1365954)
public void autonomus(){

Correct spelling is "autonomous".


All times are GMT -5. The time now is 11:35.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi