changement

This commit is contained in:
Antoine PerreaultE
2023-11-30 20:33:43 -05:00
parent 6d5e3f26ae
commit c26a26c577
7 changed files with 10 additions and 9 deletions

View File

@ -3,6 +3,7 @@
// the WPILib BSD license file in the root directory of this project.
package frc.robot;
import edu.wpi.first.math.MathUtil;
import edu.wpi.first.networktables.GenericEntry;
import edu.wpi.first.wpilibj.shuffleboard.BuiltInLayouts;
import edu.wpi.first.wpilibj.shuffleboard.Shuffleboard;
@ -51,7 +52,7 @@ public class RobotContainer {
configureBindings();
drive.setDefaultCommand(new RunCommand(()->{
drive.drive(-joystick1.getY(), -joystick1.getX(), -joystick1.getZ());
drive.drive(-joystick1.getY(), -joystick1.getX(), MathUtil.applyDeadband(-joystick1.getZ(), 0.2));
},drive));
}