From 2c1899f3b5f5efeda5875839cc6a5166c8f98330 Mon Sep 17 00:00:00 2001 From: NoahLacks63 Date: Wed, 26 Feb 2025 17:03:06 +0000 Subject: [PATCH] added proper exponential drive --- src/main/java/frc/robot/RobotContainer.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/frc/robot/RobotContainer.java b/src/main/java/frc/robot/RobotContainer.java index a20779b..c42c67b 100644 --- a/src/main/java/frc/robot/RobotContainer.java +++ b/src/main/java/frc/robot/RobotContainer.java @@ -116,9 +116,9 @@ public class RobotContainer { drivetrain.setDefaultCommand( drivetrain.drive( - () -> driver.getLeftY()^3, - () -> driver.getLeftX()^3, - driver::getRightX, + () -> Math.pow(driver.getLeftY(), 3), + () -> Math.pow(driver.getLeftX(), 3), + driver::getRightX, //Math.pow(driver.getRightX(), 3) () -> true ) );