Skip to content

Commit

Permalink
Fix naming
Browse files Browse the repository at this point in the history
  • Loading branch information
bubner committed Jan 7, 2025
1 parent 7ce23c1 commit 15fce21
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ protected final void onInit() {
// This will run asynchronously, and the callback will be called
// when the user has selected an OpMode
userSelection = new UserSelection<>(this::callback, varargs);
Threads.start("AutonomousBunyipsOpMode setOpModes selection", userSelection);
Threads.start("abom user selection", userSelection);
} else {
// There are no OpMode selections, so just run the callback with the default OpMode
callback(opModes.get(0));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ public class HolonomicLockingDriveTask extends Task {
private Measure<Time> lockingTimeout = Milliseconds.of(300);

/**
* Constructor for HolonomicVectorDriveTask.
* Constructor for HolonomicLockingDriveTask.
*
* @param vel The supplier for the current pose velocity of the robot
* @param drive The holonomic drive to use, which you must ensure is holonomic as strafe commands will be
Expand All @@ -110,7 +110,7 @@ public HolonomicLockingDriveTask(@NonNull Supplier<PoseVelocity2d> vel, @NonNull
}

/**
* Constructor for HolonomicVectorDriveTask on an always disabled field-centric mode.
* Constructor for HolonomicLockingDriveTask on an always disabled field-centric mode.
*
* @param vel The supplier for the current pose velocity of the robot
* @param drive The holonomic drive to use, which you must ensure is holonomic as strafe commands will be
Expand All @@ -122,7 +122,7 @@ public HolonomicLockingDriveTask(@NonNull Supplier<PoseVelocity2d> vel, @NonNull
}

/**
* Constructor for HolonomicVectorDriveTask using a default Mecanum binding.
* Constructor for HolonomicLockingDriveTask using a default Mecanum binding.
* Left stick controls translation, right stick controls rotation.
*
* @param driver The gamepad to use for driving
Expand All @@ -136,7 +136,7 @@ public HolonomicLockingDriveTask(@NonNull Gamepad driver, @NonNull Moveable driv
}

/**
* Constructor for HolonomicVectorDriveTask using a default Mecanum binding. Field-centric mode is disabled by default.
* Constructor for HolonomicLockingDriveTask using a default Mecanum binding. Field-centric mode is disabled by default.
* Left stick controls translation, right stick controls rotation.
*
* @param driver The gamepad to use for driving
Expand Down Expand Up @@ -276,7 +276,7 @@ protected void init() {

@Override
protected void periodic() {
Pose2d current = Objects.requireNonNull(drive.getPose(), "A localizer must be attached to the drive instance in order to use the HolonomicVectorDriveTask!");
Pose2d current = Objects.requireNonNull(drive.getPose(), "A localizer must be attached to the drive instance in order to use the HolonomicLockingDriveTask!");

PoseVelocity2d v = vel.get();
if (fieldCentricEnabled.getAsBoolean()) {
Expand Down

0 comments on commit 15fce21

Please sign in to comment.