Skip to content

Commit

Permalink
Toyotathon DP
Browse files Browse the repository at this point in the history
  • Loading branch information
taj-maharj08 committed Feb 18, 2025
1 parent 4ac77a3 commit 0ada803
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions src/main/java/frc/robot/RobotContainer.java
Original file line number Diff line number Diff line change
Expand Up @@ -222,12 +222,12 @@ private void configureBindings() {
// new Transform2d(Units.inchesToMeters(-4.5), Units.inchesToMeters(13.5), new Rotation2d())));
joystick.povDown().onTrue(s_Algae.reZero());

joystick.b().whileTrue(new ReefBranchAlign(drivetrain,
joystick.b().whileTrue(Commands.parallel(new ReefBranchAlign(drivetrain,
new Transform2d(Units.inchesToMeters(-4.5), Units.inchesToMeters(0.5+2.25), new Rotation2d()),
() -> -joystick.getLeftY()));
joystick.x().whileTrue(new ReefBranchAlign(drivetrain,
() -> -joystick.getLeftY()), s_Shooter.shootTrough())).onFalse(s_Shooter.stop());
joystick.x().whileTrue(Commands.parallel(new ReefBranchAlign(drivetrain,
new Transform2d(Units.inchesToMeters(-4.5), Units.inchesToMeters(13.5+2.25), new Rotation2d()),
() -> -joystick.getLeftY()));
() -> -joystick.getLeftY()),s_Shooter.shootTrough())).onFalse(s_Shooter.stop());

// joystick.x().whileTrue(new DriveToPose( new Pose2d(
// Units.inchesToMeters(144.003)-Units.inchesToMeters(13),
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/frc/robot/subsystems/elevator/Elevator.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ public class Elevator extends SubsystemBase {
private final ElevatorIO m_io;
private final double L1Setpoint = 29;
private final double L2Setpoint = 38.5;//32.5
private final double L3Setpoint = 54;
private final double L3Setpoint = 51.5;
private final double L4Setpoint = 77; // 74.5 and 78 dp on feb 1
private final double L2ASetpoint = 48.5;
private final double L3ASetpoint = 62.5;
private final double L3ASetpoint = 64.5;
// private final double L1Setpoint = 1;
// private final double L2Setpoint = 2;//32.5
// private final double L3Setpoint = 3;
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/frc/robot/subsystems/shooter/Shooter.java
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ public Shooter(ShooterIO io) {
m_io = io;
}

public Command shootL2() {
public Command shootL4() {
return this.run(() -> m_io.setSpeed(-0.3));
}

Expand Down

0 comments on commit 0ada803

Please sign in to comment.