Skip to content

Commit

Permalink
Quadratic scaling on rotation
Browse files Browse the repository at this point in the history
  • Loading branch information
ProgrammingSR committed Mar 23, 2024
1 parent e2df81d commit 3157db9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/frc/robot/RobotContainer.java
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ public RobotContainer() {
* IOConstants.kSlowModeScalar),
// * 0.8,
MathUtil.applyDeadband(
-m_driverController.getRightX(),
-m_driverController.getRightX() * Math.abs(m_driverController.getRightX()),
IOConstants.kControllerDeadband)
* DriveConstants.kMaxAngularSpeedRadiansPerSecond
* (1 - m_driverController
Expand Down

0 comments on commit 3157db9

Please sign in to comment.