diff options
author | kartofen <mladenovnasko0@gmail.com> | 2024-02-16 18:10:45 +0200 |
---|---|---|
committer | kartofen <mladenovnasko0@gmail.com> | 2024-02-16 18:10:45 +0200 |
commit | d857877ee292202ba3a469b3821561ff0d4218d2 (patch) | |
tree | 8bcf2b7e68027fe6f97ab2101b1a8e53970d945b /src/main/java/frc/robot/RobotContainer.java | |
parent | 22d859552d0728ad0c553382ddd3cbbd140423b1 (diff) |
working gyro and subsystem
Diffstat (limited to 'src/main/java/frc/robot/RobotContainer.java')
-rw-r--r-- | src/main/java/frc/robot/RobotContainer.java | 21 |
1 files changed, 9 insertions, 12 deletions
diff --git a/src/main/java/frc/robot/RobotContainer.java b/src/main/java/frc/robot/RobotContainer.java index d2cede4..64ef818 100644 --- a/src/main/java/frc/robot/RobotContainer.java +++ b/src/main/java/frc/robot/RobotContainer.java @@ -29,15 +29,15 @@ public class RobotContainer private void configureBindings() { - m_drive.setDefaultCommand(m_drive.run(() -> - // m_drive.arcade( - // deadzone(-1, 1, m_controller.getRawAxis(1) * Constants.DriveMaxSpeed), - // deadzone(-1, 1, m_controller.getRawAxis(0) * Constants.DriveMaxAngular) - // ))); - m_drive.tank( - deadzone(-0.09, 0.09, m_controller.getRawAxis(1)) * Constants.DriveMaxSpeed, - deadzone(-0.09, 0.09, m_controller.getRawAxis(3)) * Constants.DriveMaxSpeed - ))); + // m_drive.setDefaultCommand(m_drive.run(() -> + // // m_drive.arcade( + // // deadzone(-1, 1, m_controller.getRawAxis(1) * Constants.DriveMaxSpeed), + // // deadzone(-1, 1, m_controller.getRawAxis(0) * Constants.DriveMaxAngular) + // // ))); + // m_drive.tank( + // deadzone(-0.09, 0.09, m_controller.getRawAxis(1)) * Constants.DriveMaxSpeed, + // deadzone(-0.09, 0.09, m_controller.getRawAxis(3)) * Constants.DriveMaxSpeed + // ))); new Trigger(() -> m_controller.getRawButton(1)).onTrue(Commands.runOnce(() -> { Pose2d pose = m_drive.pose2d(); @@ -48,9 +48,6 @@ public class RobotContainer System.out.println("Reset"); m_drive.reset(); })); - // new Trigger(() -> m_controller.getRawButton(3)).onTrue(Commands.run(() -> { - // m_drive.tank(5, 5); - // })); } public Command getAutonomousCommand() |