From 05a9f4bc4c7a1a520f8134a8735bca511f8ef504 Mon Sep 17 00:00:00 2001 From: Jack Lingle Date: Mon, 18 Nov 2024 15:53:10 -0500 Subject: [PATCH] update variable name --- .../wpilib_interface/DriveWithJoysticks.java | 6 +++--- .../src/main/java/frc/robot/BuildConstants.java | 12 ++++++------ 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/wpilib_interface/src/main/java/coppercore/wpilib_interface/DriveWithJoysticks.java b/wpilib_interface/src/main/java/coppercore/wpilib_interface/DriveWithJoysticks.java index a83f44a..92616ea 100644 --- a/wpilib_interface/src/main/java/coppercore/wpilib_interface/DriveWithJoysticks.java +++ b/wpilib_interface/src/main/java/coppercore/wpilib_interface/DriveWithJoysticks.java @@ -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 diff --git a/wpilib_interface/src/main/java/frc/robot/BuildConstants.java b/wpilib_interface/src/main/java/frc/robot/BuildConstants.java index bc28a5b..0e7c24f 100644 --- a/wpilib_interface/src/main/java/frc/robot/BuildConstants.java +++ b/wpilib_interface/src/main/java/frc/robot/BuildConstants.java @@ -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() {} }