Skip to content

Commit

Permalink
copied 2023
Browse files Browse the repository at this point in the history
  • Loading branch information
sofiebudman committed Mar 2, 2024
1 parent 9d871f8 commit cbd88d6
Show file tree
Hide file tree
Showing 2 changed files with 187 additions and 144 deletions.
3 changes: 2 additions & 1 deletion src/main/java/org/carlmontrobotics/RobotContainer.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
// import org.carlmontrobotics.subsystems.*;
import org.carlmontrobotics.commands.*;
import static org.carlmontrobotics.Constants.OI;
import static org.carlmontrobotics.Constants.Arm.ampAngle;

import org.carlmontrobotics.Constants.OI;
import org.carlmontrobotics.commands.ArmTeleop;
Expand Down Expand Up @@ -77,7 +78,7 @@ private void setBindingsManipulator() {
new JoystickButton(manipulatorController, Constants.Arm.raiseToSpeakerNextButton).onTrue(new InstantCommand(() -> {arm.cancelArmCommand(); new armNextToSpeakerPos(arm);}));
new JoystickButton(manipulatorController, Constants.Arm.raiseToSpeakerSafeButton).onTrue(new InstantCommand(() -> {arm.cancelArmCommand(); new armSafeZonePos(arm);}));
// Amp and Intake Buttons
new JoystickButton(manipulatorController, Constants.Arm.raiseToAmpButton).onTrue(new InstantCommand(() -> {arm.cancelArmCommand(); new armAmpPos(arm);}));
new JoystickButton(manipulatorController, Constants.Arm.raiseToAmpButton).onTrue(new InstantCommand(() -> {arm.driveArm(ampAngle)));
new JoystickButton(manipulatorController, Constants.Arm.raiseToGroundButton).onTrue(new InstantCommand(() -> {arm.cancelArmCommand(); new armGroundPos(arm);}));
// Cimber Buttons
new JoystickButton(manipulatorController, Constants.Arm.raiseToClimberButton).onTrue(new InstantCommand(() -> {arm.cancelArmCommand(); new armClimberUpPos(arm);}));
Expand Down
Loading

0 comments on commit cbd88d6

Please sign in to comment.