Skip to content

Commit

Permalink
more incorp
Browse files Browse the repository at this point in the history
  • Loading branch information
ControlsNarwhal committed Oct 5, 2024
1 parent 9f89753 commit e260e01
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 10 deletions.
4 changes: 2 additions & 2 deletions src/main/java/frc/team3128/Constants.java
Original file line number Diff line number Diff line change
Expand Up @@ -457,8 +457,8 @@ public static class AmperConstants {
public static final int ELEV_MOTOR_ID = 21;
public static final NAR_CANSpark ELEV_MOTOR = new NAR_CANSpark(ELEV_MOTOR_ID);

// public static final int ROLLER_MOTOR_ID = 20;
// public static final NAR_CANSpark ROLLER_MOTOR = new NAR_CANSpark(ROLLER_MOTOR_ID, ControllerType.CAN_SPARK_FLEX);
public static final int ROLLER_MOTOR_ID = 20;
public static final NAR_CANSpark ROLLER_MOTOR = new NAR_CANSpark(ROLLER_MOTOR_ID, ControllerType.CAN_SPARK_FLEX);

public static final PIDFFConfig PIDConstants = new PIDFFConfig(0.75, 0, 0, 0.21115, 0.00182, 0.00182, 0.0);
public static final double MAX_VELOCTIY = 10000000;
Expand Down
19 changes: 11 additions & 8 deletions src/main/java/frc/team3128/commands/CmdManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -91,19 +91,22 @@ public static Command ramShootNoStop(boolean once) {
// ).andThen(ramShoot(once)).andThen(runOnce(() -> CmdSwerveDrive.disableTurn()));
// }

public static Command rampUpAmp() {
public static Command ampUp(){
return sequence(
shooter.shoot(AMP_RPM),
amper.extend()
amper.partExtend(),
amper.runRollers(),
shooter.runShooter(0.3)
);
}

public static Command amp(boolean once) {
public static Command ampFinAndDown(){
return sequence(
rampUpAmp(),
waitUntil(() -> shooter.atSetpoint() && amper.atSetpoint()),
kick(once),
waitSeconds(0.2),
amper.fullExtend(),
waitUntil(() -> amper.atSetpoint()),
shooter.runKickMotor(1),
waitSeconds(1),
amper.stopRollers(),
shooter.stopMotors(),
amper.retract()
);
}
Expand Down

0 comments on commit e260e01

Please sign in to comment.