Skip to content

Commit 7cd6510

Browse files
committed
DifferentialDrive
1 parent dd25b34 commit 7cd6510

File tree

3 files changed

+5
-18
lines changed

3 files changed

+5
-18
lines changed

src/main/java/org/usfirst/frc/team69/util/driving/ArcadeDriveParams.java

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
package org.usfirst.frc.team69.util.driving;
22

3-
import edu.wpi.first.wpilibj.RobotDrive;
4-
import edu.wpi.first.wpilibj.drive.DifferentialDrive;
3+
import edu.wpi.first.wpilibj.drive.DifferentialDrive;;
54

65
/**
76
* A class which represents arcade drive. Arcade drive uses two values: move and
@@ -46,16 +45,10 @@ public ArcadeDriveParams(double move, double rotate, boolean squareInputs) {
4645
* {@inheritDoc}
4746
*/
4847
@Override
49-
public void drive(RobotDrive driveTrain, double currentGyro) {
48+
public void drive(DifferentialDrive driveTrain, double currentGyro) {
5049
driveTrain.arcadeDrive(m_move, m_rotate, m_squareInputs);
5150
}
52-
53-
@Override
54-
public void drive(DifferentialDrive driveTrain, double currentGyro) {
55-
// TODO Auto-generated method stub
56-
driveTrain.arcadeDrive(m_move, m_rotate, m_squareInputs);
57-
}
58-
51+
5952
/**
6053
* Get the move parameter
6154
*

src/main/java/org/usfirst/frc/team69/util/driving/DriveParameters.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
import edu.wpi.first.wpilibj.RobotDrive;
44
import edu.wpi.first.wpilibj.drive.DifferentialDrive;
5+
import edu.wpi.first.wpilibj.drive.MecanumDrive;
56

67
/**
78
* The {@link DriveParameters} interface allows one to use polymorphism to
@@ -36,6 +37,5 @@ public interface DriveParameters {
3637
* The current gyro heading, if a gyro exists. Nothing should use
3738
* this right now, so just pass in 0.0 if you're not sure.
3839
*/
39-
void drive(RobotDrive driveTrain, double currentGyro);
4040
void drive(DifferentialDrive driveTrain, double currentGyro);
4141
}

src/main/java/org/usfirst/frc/team69/util/driving/TankDriveParams.java

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
package org.usfirst.frc.team69.util.driving;
22

3-
import edu.wpi.first.wpilibj.RobotDrive;
43
import edu.wpi.first.wpilibj.drive.DifferentialDrive;
54

65
/**
@@ -42,12 +41,7 @@ public TankDriveParams(double left, double right, boolean squareInputs) {
4241

4342
/**
4443
* {@inheritDoc}
45-
*/
46-
@Override
47-
public void drive(RobotDrive driveTrain, double currentGyro) {
48-
driveTrain.tankDrive(m_left, m_right, m_squareInputs);
49-
}
50-
44+
*/
5145
@Override
5246
public void drive(DifferentialDrive driveTrain, double currentGyro) {
5347
// TODO Auto-generated method stub

0 commit comments

Comments
 (0)