Skip to content

Commit

Permalink
fixed some things in robot container
Browse files Browse the repository at this point in the history
  • Loading branch information
miyac22 committed Sep 15, 2023
1 parent cdcbcf2 commit 3a4170c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
10 changes: 3 additions & 7 deletions src/main/java/frc/robot/RobotContainer.java
Original file line number Diff line number Diff line change
Expand Up @@ -197,10 +197,6 @@ public void containerMatchStarting() {
* edu.wpi.first.wpilibj2.command.button.JoystickButton}.
*/
private void configureButtonBindings() {
jason.a().onTrue(new IntakeModeCommand(intakeSubsystem, IntakeMode.HOLD));
jason.b().onTrue(new IntakeModeCommand(intakeSubsystem, IntakeMode.INTAKE));
jason.x().onTrue(new IntakeModeCommand(intakeSubsystem, IntakeMode.OUTTAKE));

jason.leftTrigger().onTrue(new WristManualCommand(elevatorSubsystem, 0));
jason.rightTrigger().onTrue(new WristManualCommand(elevatorSubsystem, 20));
jason
Expand Down Expand Up @@ -307,16 +303,16 @@ private void configureButtonBindings() {
drivebaseSubsystem, intakeSubsystem, EngageCommand.EngageDirection.GO_BACKWARD));

// outtake states

jasonLayer
.off(jason.leftTrigger())
.whileTrue(
new ForceOuttakeSubsystemModeCommand(outtakeSubsystem, OuttakeSubsystem.Modes.INTAKE));
new IntakeModeCommand(intakeSubsystem, IntakeSubsystem.Modes.INTAKE));
jasonLayer
.off(jason.rightTrigger())
.onTrue(new SetOuttakeModeCommand(outtakeSubsystem, OuttakeSubsystem.Modes.OUTTAKE));
.onTrue(new IntakeModeCommand(intakeSubsystem, IntakeSubsystem.Modes.OUTTAKE));
jasonLayer
.off(jason.x())
.onTrue(new SetOuttakeModeCommand(outtakeSubsystem, OuttakeSubsystem.Modes.OFF))
.onTrue(new IntakeModeCommand(intakeSubsystem, IntakeSubsystem.IntakeMode.HOLD));

// intake presets
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public void initialize() {}
// Called every time the scheduler runs while the command is scheduled.
@Override
public void execute() {
elevatorSubsystem.setTargetHeight(elevatorSubsystem.getTargetHeight() + rate.getAsDouble());
elevatorSubsystem.setTargetHeight(elevatorSubsystem.getHeight() + rate.getAsDouble());
}

// Called once the command ends or is interrupted.
Expand Down

0 comments on commit 3a4170c

Please sign in to comment.