forked from int0x191f2/ford-java
Autoformatted
This commit is contained in:
parent
4c80b97a13
commit
b93bdc2993
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user