This repository was archived by the owner on Jul 20, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +5
-7
lines changed Expand file tree Collapse file tree 4 files changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ public class RobotContainer {
3535 private final HasGP com_StageGP = new HasGP (subStager );
3636 private final Shoot com_Shoot = new Shoot (subStager , subShooter );
3737 private final intakeHopper com_IntakeHopper = new intakeHopper (subHopper , subStager );
38- private final EjectGP com_EjectGP = new EjectGP (subIntake , subHopper );
38+ private final EjectGP com_EjectGP = new EjectGP (subIntake );
3939
4040 public RobotContainer () {
4141 subDrivetrain .setDefaultCommand (com_Drive );
Original file line number Diff line number Diff line change 66
77import edu .wpi .first .wpilibj2 .command .Command ;
88import frc .robot .Constants ;
9- import frc .robot .subsystems .Hopper ;
109import frc .robot .subsystems .Intake ;
1110
1211public class EjectGP extends Command {
1312 /** Creates a new EjectGP. */
1413
1514 Intake globalIntake ;
16- Hopper globalHopper ;
1715
18- public EjectGP (Intake subIntake , Hopper subHopper ) {
16+ public EjectGP (Intake subIntake ) {
1917 // Use addRequirements() here to declare subsystem dependencies.
20- this .globalHopper = subHopper ;
2118 this .globalIntake = subIntake ;
2219 }
2320
@@ -35,7 +32,6 @@ public void execute() {
3532 // Called once the command ends or is interrupted.
3633 @ Override
3734 public void end (boolean interrupted ) {
38- globalHopper .setOrientationMotorNuetralOutput ();
3935 globalIntake .setIntakeNuetralOutput ();
4036 }
4137
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ public void initialize() {
3030 @ Override
3131 public void execute () {
3232 // if Stager is full
33- if (globalStager .getHasGP ()) {
33+ if (! globalStager .getHasGP ()) {
3434 globalIntake .setIntakeVelocity (0 );
3535 } else {
3636 globalIntake .setIntakeVelocity (Constants .constIntake .INTAKE_VELOCITY );
Original file line number Diff line number Diff line change 99// import com.ctre.phoenix6.hardware.TalonSRX;
1010
1111import edu .wpi .first .wpilibj .DigitalInput ;
12+ import edu .wpi .first .wpilibj .smartdashboard .SmartDashboard ;
1213import edu .wpi .first .wpilibj2 .command .SubsystemBase ;
1314import frc .robot .RobotMap ;
1415
@@ -44,5 +45,6 @@ public boolean getHasGP() {
4445 @ Override
4546 public void periodic () {
4647 // This method will be called once per scheduler run
48+ SmartDashboard .putBoolean ("hasGP" , !getHasGP ());
4749 }
4850}
You can’t perform that action at this time.
0 commit comments