Skip to content

Commit

Permalink
removed wait command for controller outtake (#37)
Browse files Browse the repository at this point in the history
* removed wait command for controller outtake

* Quadratic scaling on rotation
  • Loading branch information
ProgrammingSR authored Mar 23, 2024
1 parent 58d7ed9 commit e44f2a9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions 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 Expand Up @@ -210,7 +210,7 @@ private void configureBindings() {
// Outtake, Operator Controller Right Trigger
new Trigger(() -> {
return m_operatorController.getRightTriggerAxis() > 0.5;
}).whileTrue(new ParallelDeadlineGroup(new WaitCommand(1), new NoteOuttakeCommand(m_intakeSubsystem)));
}).whileTrue(new NoteOuttakeCommand(m_intakeSubsystem));

new Trigger(() -> {
return m_operatorController.getLeftTriggerAxis() > 0.5;
Expand Down

0 comments on commit e44f2a9

Please sign in to comment.