Skip to content

Commit

Permalink
update variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
linglejack06 committed Nov 18, 2024
1 parent 0d3c484 commit 05a9f4b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,10 @@ public void execute() {

/* returns a calculated translation with squared velocity */
public Translation2d getLinearVelocity(double x, double y) {
double[] deadbands = Deadband.twoAxisDeadband(x, y, joystickDeadband);
double[] deadbands = Deadband.twoAxisDeadband(x, y, joystickDeadband);

double x = deadbands[0], y = deadbands[1];
double magnitude = Math.hypot(x, y);
double xDeadband = deadbands[0], yDeadband = deadbands[1];
double magnitude = Math.hypot(xDeadband, yDeadband);

/* joystick x/y is opposite of field x/y
* therefore, x and y must be flipped for proper rotation of pose
Expand Down
12 changes: 6 additions & 6 deletions wpilib_interface/src/main/java/frc/robot/BuildConstants.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ public final class BuildConstants {
public static final String MAVEN_GROUP = "com.github.team401";
public static final String MAVEN_NAME = "wpilib_interface";
public static final String VERSION = "0.0";
public static final int GIT_REVISION = 35;
public static final String GIT_SHA = "497822ac6367923d18b42fc721160171e690af59";
public static final String GIT_DATE = "2024-11-13 18:53:56 EST";
public static final int GIT_REVISION = 37;
public static final String GIT_SHA = "0d3c48454d755dbeb88995f042eab953dea7f3ad";
public static final String GIT_DATE = "2024-11-18 15:51:15 EST";
public static final String GIT_BRANCH = "drive-command";
public static final String BUILD_DATE = "2024-11-13 19:02:59 EST";
public static final long BUILD_UNIX_TIME = 1731542579980L;
public static final int DIRTY = 1;
public static final String BUILD_DATE = "2024-11-18 15:53:01 EST";
public static final long BUILD_UNIX_TIME = 1731963181407L;
public static final int DIRTY = 0;

private BuildConstants() {}
}

0 comments on commit 05a9f4b

Please sign in to comment.