View Single Post
  #1   Spotlight this post!  
Unread 28-03-2014, 11:28
anthonygraff24 anthonygraff24 is offline
Registered User
FRC #2872 (CyberCats)
Team Role: Programmer
 
Join Date: Jan 2013
Rookie Year: 2012
Location: Long Island
Posts: 38
anthonygraff24 is an unknown quantity at this point
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!





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);

}
Reply With Quote