Skip to content

Commit 8dc4594

Browse files
caengineerscaengineers
authored andcommitted
Correct typo "Allign" to "Align"
1 parent 479eaf7 commit 8dc4594

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

  • Robot2019/src/main/java/frc/robot/commands

Robot2019/src/main/java/frc/robot/commands/Drive.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ protected void initialize() {
5353
@Override
5454
protected void execute() {
5555
if (SmartDashboard.getBoolean("Using Limelight", false)) {
56-
autoAllign();
56+
autoAlign();
5757
} else {
5858
if (SmartDashboard.getBoolean("Arcade Drive", true)) {
5959
arcadeDrive();
@@ -239,36 +239,36 @@ private void charDrive(double left, double right) {
239239
dt.disableVoltageCompensation();
240240
}
241241

242-
private void autoAllign() {
242+
private void autoAlign() {
243243
if (limelightMode == Limelight.Mode.DIST) {
244244
adjustment = lime.distanceAssist();
245245
dt.drive(adjustment, adjustment);
246246
if (Math.abs(adjustment) < minError) {
247-
SmartDashboard.putBoolean("Finished Alligning", true);
247+
SmartDashboard.putBoolean("Finished Aligning", true);
248248
}
249249
}
250250
else if (limelightMode == Limelight.Mode.STEER) {
251251
adjustment = lime.distanceAssist();
252252
dt.drive(adjustment, -adjustment);
253253
if (Math.abs(adjustment) < minError) {
254-
SmartDashboard.putBoolean("Finished Alligning", true);
254+
SmartDashboard.putBoolean("Finished Aligning", true);
255255
}
256256
} else {
257257
double[] params = lime.autoTarget();
258258
dt.drive(params[0], params[1]);
259259
double maxInput = Math.max(Math.abs(params[0]), Math.abs(params[1]));
260260
if (maxInput < minError) {
261-
SmartDashboard.putBoolean("Finished Alligning", true);
261+
SmartDashboard.putBoolean("Finished Aligning", true);
262262
}
263263
}
264264
}
265265

266266
// Make this return true when this Command no longer needs to run execute()
267267
@Override
268268
protected boolean isFinished() {
269-
if (!SmartDashboard.getBoolean("Use Limelight", false) || SmartDashboard.getBoolean("Finished Alligning", false)) {
269+
if (!SmartDashboard.getBoolean("Use Limelight", false) || SmartDashboard.getBoolean("Finished Aligning", false)) {
270270
SmartDashboard.putBoolean("Use Limelight", false);
271-
SmartDashboard.putBoolean("Finished Alligning", false);
271+
SmartDashboard.putBoolean("Finished Aligning", false);
272272
return true;
273273
} else {
274274
return false;

0 commit comments

Comments
 (0)