Autoformatted

This commit is contained in:
Austen Adler 2016-07-20 15:27:35 -04:00
parent 4c80b97a13
commit b93bdc2993
No known key found for this signature in database
GPG Key ID: 7ECEE590CCDFE3F1
7 changed files with 195 additions and 191 deletions

View File

@ -42,7 +42,7 @@ public class Robot extends IterativeRobot {
* You can use it to reset any subsystem information you want to clear when
* the robot is disabled.
*/
public void disabledInit(){
public void disabledInit() {
}
@ -74,7 +74,9 @@ public class Robot extends IterativeRobot {
} */
// schedule the autonomous command (example)
if (autonomousCommand != null) autonomousCommand.start();
if (autonomousCommand != null) {
autonomousCommand.start();
}
}
/**
@ -89,7 +91,9 @@ public class Robot extends IterativeRobot {
// teleop starts running. If you want the autonomous to
// continue until interrupted by another command, remove
// this line or comment it out.
if (autonomousCommand != null) autonomousCommand.cancel();
if (autonomousCommand != null) {
autonomousCommand.cancel();
}
}
/**

View File

@ -17,11 +17,11 @@ public class Drivebase extends Subsystem {
setDefaultCommand(new Drive());
}
public void driveArcade(double x, double y, double z, double sensitivity){
leftMotorOne.set(-y+(x+z));
leftMotorTwo.set(-y+(x+z));
rightMotorOne.set(y+(x+z));
rightMotorTwo.set(y+(x+z));
public void driveArcade(double x, double y, double z, double sensitivity) {
leftMotorOne.set(-y + (x + z));
leftMotorTwo.set(-y + (x + z));
rightMotorOne.set(y + (x + z));
rightMotorTwo.set(y + (x + z));
}
}