From 5a6fd861a2e08b5c88436cdd9d98e77f02344871 Mon Sep 17 00:00:00 2001 From: QuackitsQuinn Date: Mon, 25 Mar 2024 15:29:18 -0500 Subject: [PATCH] Fix a bunch of misspellings --- src/main/java/frc/robot/Constants.java | 8 ++++---- src/main/java/frc/robot/Controllers.java | 4 ++-- .../java/frc/robot/commands/mailbox/DeindexNote.java | 2 +- src/main/java/frc/robot/subsystems/Drive.java | 12 ++++++------ src/main/java/frc/robot/subsystems/Limelight.java | 10 +++++----- .../frc/robot/subsystems/mailbox/MailboxBelts.java | 2 +- .../robot/subsystems/mailbox/MailboxPneumatics.java | 2 +- 7 files changed, 20 insertions(+), 20 deletions(-) diff --git a/src/main/java/frc/robot/Constants.java b/src/main/java/frc/robot/Constants.java index 413bd29c..fd410560 100644 --- a/src/main/java/frc/robot/Constants.java +++ b/src/main/java/frc/robot/Constants.java @@ -104,7 +104,7 @@ public static class Drive { /** The max speed for the robot when not sprinting (in m/s) */ public static final double MAX_NORMAL_SPEED = 2; - /** The max angular speed (in randians) for the robot when not sprinting */ + /** The max angular speed (in radians) for the robot when not sprinting */ public static final double MAX_NORMAL_ANGULAR_SPEED = 2 * Math.PI; /** The Translation Drive PID for the robot. */ @@ -114,7 +114,7 @@ public static class Drive { public static PIDConstants ROTATION_DRIVE_PID = new PIDConstants(1.0, 0.0, 0.0); } - /** Holds constants specfically related to autonomous. */ + /** Holds constants specifically related to autonomous. */ public static class Auto { /** The number of meters per second that we want to move forward during the taxi auto */ public static double TAXI_AUTO_METERS_PER_SECOND = 1.0; @@ -160,11 +160,11 @@ public static class Intake { public static final IdleMode INTAKE_MOTOR_IDLE_MODE = IdleMode.kBrake; } - /** Holds contstants for the Limelights. */ + /** Holds contestants for the Limelights. */ public static class Limelight { /** Constants for aiming Limelight. */ public static class AimingLimelight { - /** Our name in the networktables for the limelight */ + /** Our name in the network tables for the limelight */ public static final String LIMELIGHT_NAME = "limelight"; /** The number of degrees the Limelight is mounted back from perfectly vertical */ diff --git a/src/main/java/frc/robot/Controllers.java b/src/main/java/frc/robot/Controllers.java index 8e60eae9..647b395c 100644 --- a/src/main/java/frc/robot/Controllers.java +++ b/src/main/java/frc/robot/Controllers.java @@ -163,7 +163,7 @@ public static void configureKeybinds(Keymap keymap) { break; default: throw new IllegalArgumentException( - "configureKeybinds() recieved an illegal enum constant argument"); + "configureKeybinds() received an illegal enum constant argument"); } } @@ -207,7 +207,7 @@ public static double getControllerAxis( return controller.getRightY(); default: throw new IllegalArgumentException( - "getControllerAxis() recieved an illegal enum constant argument"); + "getControllerAxis() received an illegal enum constant argument"); } } } diff --git a/src/main/java/frc/robot/commands/mailbox/DeindexNote.java b/src/main/java/frc/robot/commands/mailbox/DeindexNote.java index 1a8a91d5..81d255e4 100644 --- a/src/main/java/frc/robot/commands/mailbox/DeindexNote.java +++ b/src/main/java/frc/robot/commands/mailbox/DeindexNote.java @@ -40,7 +40,7 @@ public void execute() { if (mailbox.getLimitSwitch()) { intake.runIntake(); } - /* This else isn't neccessary, just advised for safety. If it interferes with anything, feel + /* This else isn't necessary, just advised for safety. If it interferes with anything, feel free to remove it. */ else { intake.stop(); diff --git a/src/main/java/frc/robot/subsystems/Drive.java b/src/main/java/frc/robot/subsystems/Drive.java index dbd732e6..09566a09 100644 --- a/src/main/java/frc/robot/subsystems/Drive.java +++ b/src/main/java/frc/robot/subsystems/Drive.java @@ -46,7 +46,7 @@ public class Drive extends SubsystemBase { /** Creates a new Drive. */ public Drive() { /* Try-catch because otherwise the compiler tries to anticipate runtime errors and throws a - * compiletime error for a missing file even though it shouldn't + * comp-time error for a missing file even though it shouldn't */ try { drive = @@ -92,7 +92,7 @@ public Drive() { * Drives the robot in either field relative or robot relative. * * @param translation {@link Translation2d} that represents the commanded robot velocities on the - * x and y axes. Front-left postitive. Reletive to the field. + * x and y axes. Front-left positive. Relative to the field. * @param z Robot angular velocity around the z-axis in radians per second. Counter-clockwise is * positive. * @param isFieldOriented If the robot should either drive field oriented or robot oriented. @@ -122,18 +122,18 @@ public void zeroGyro() { } /** - * Gets the maximum speed the robot chassis can acheive in m/s. + * Gets the maximum speed the robot chassis can achieve in m/s. * - * @return Maximum speed the robot chassis can acheive in m/s. + * @return Maximum speed the robot chassis can achieve in m/s. */ public double getMaximumSpeed() { return Math.min(drive.getMaximumVelocity(), Constants.Drive.MAX_SPEED); } /** - * Gets the maximum angular speed the robot chassis can acheive in rad/s. + * Gets the maximum angular speed the robot chassis can achieve in rad/s. * - * @return Maximum angular speed the robot chassis can acheive in rad/s. + * @return Maximum angular speed the robot chassis can achieve in rad/s. */ public double getMaximumAngularSpeed() { return Math.min(drive.getMaximumAngularVelocity(), Constants.Drive.MAX_ANGULAR_SPEED); diff --git a/src/main/java/frc/robot/subsystems/Limelight.java b/src/main/java/frc/robot/subsystems/Limelight.java index e6529847..bd686f46 100644 --- a/src/main/java/frc/robot/subsystems/Limelight.java +++ b/src/main/java/frc/robot/subsystems/Limelight.java @@ -28,13 +28,13 @@ /** Subsystem for the Limelight 2+ that we use for vision. */ public class Limelight extends SubsystemBase { - /* variable chaingun, I promise we use all of these */ + /* variable chain-gun, I promise we use all of these */ private DoubleSubscriber tvSubscriber, txSubscriber, tySubscriber, taSubscriber; /* See https://docs.limelightvision.io/en/latest/apriltags_in_3d.html#robot-localization-botpose-and-megatag * to understand what the heck the different indices in this array mean */ private DoubleArraySubscriber botposSubscriber; - private DoubleSubscriber pipelineSubcriber; + private DoubleSubscriber pipelineSubscriber; private DoublePublisher pipelinePublisher; private String name; @@ -57,7 +57,7 @@ public Limelight(String name) { taSubscriber = NetworkTableInstance.getDefault().getDoubleTopic(fmtPath("ta")).subscribe(0.0); DoubleTopic pipelineTopic = NetworkTableInstance.getDefault().getDoubleTopic(fmtPath("pipeline")); - this.pipelineSubcriber = pipelineTopic.subscribe(0.0); + this.pipelineSubscriber = pipelineTopic.subscribe(0.0); this.pipelinePublisher = pipelineTopic.publish(); double[] defaultBotpos = {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}; botposSubscriber = @@ -73,7 +73,7 @@ public Limelight(String name) { limelightHasTarget = Shuffleboard.getTab("Driver").add(name + "has target", false).getEntry(); } - /* now its time for getter method chaingun, which I have to write manually because VS Code */ + /* now its time for getter method chain gun, which I have to write manually because VS Code */ /** * Returns whether the Limelight has a valid target. @@ -149,7 +149,7 @@ public Pose2d getBotpose2d() { * @return the current Limelight pipeline number. */ public double getLimelightPipeline() { - return pipelineSubcriber.get(); + return pipelineSubscriber.get(); } /** diff --git a/src/main/java/frc/robot/subsystems/mailbox/MailboxBelts.java b/src/main/java/frc/robot/subsystems/mailbox/MailboxBelts.java index 2788039d..826bc09c 100644 --- a/src/main/java/frc/robot/subsystems/mailbox/MailboxBelts.java +++ b/src/main/java/frc/robot/subsystems/mailbox/MailboxBelts.java @@ -21,7 +21,7 @@ public class MailboxBelts extends SubsystemBase { private CANSparkMax upperBeltMotor; private CANSparkMax lowerBeltMotor; - /** Constructer for MailboxBelts subsystem */ + /** Constructor for MailboxBelts subsystem */ public MailboxBelts() { upperBeltMotor = new CANSparkMax(Constants.MailboxBelts.UPPER_BELT_MOTOR_ID, MotorType.kBrushless); diff --git a/src/main/java/frc/robot/subsystems/mailbox/MailboxPneumatics.java b/src/main/java/frc/robot/subsystems/mailbox/MailboxPneumatics.java index 645bd72d..81b70e76 100644 --- a/src/main/java/frc/robot/subsystems/mailbox/MailboxPneumatics.java +++ b/src/main/java/frc/robot/subsystems/mailbox/MailboxPneumatics.java @@ -17,7 +17,7 @@ import frc.robot.Constants; /** - * Represents the pistons that raise the Mailbox, which is the system that outputs gamepieces from + * Represents the pistons that raise the Mailbox, which is the system that outputs game pieces from * our robot */ public class MailboxPneumatics extends SubsystemBase {