mirror of
https://github.com/Team4388/RiseOfRidgebotics2020.git
synced 2026-06-09 00:38:00 -06:00
Separated Steer and Drive Factor
This commit is contained in:
@@ -43,7 +43,7 @@ public class DriveWithJoystick extends CommandBase {
|
||||
@Override
|
||||
public void execute() {
|
||||
double moveInput = m_controller.getLeftYAxis() * DriveConstants.DRIVE_WITH_JOYSTICK_FACTOR;
|
||||
double steerInput = m_controller.getRightXAxis() * DriveConstants.DRIVE_WITH_JOYSTICK_FACTOR;
|
||||
double steerInput = m_controller.getRightXAxis() * DriveConstants.STEER_WITH_JOYSTICK_FACTOR;
|
||||
double moveOutput = Math.copySign(1 - Math.cos(Math.PI * moveInput / 2), moveInput);
|
||||
double cosMultiplier = m_pneumatics.m_isSpeedShiftHigh ? DriveConstants.COS_MULTIPLIER_HIGH : DriveConstants.COS_MULTIPLIER_LOW;
|
||||
double deadzone = 0.1;
|
||||
|
||||
Reference in New Issue
Block a user