Skip to content

Commit

Permalink
start queuer subsytem
Browse files Browse the repository at this point in the history
  • Loading branch information
Owen756 committed Aug 14, 2024
1 parent 9e30e23 commit c82f451
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/main/java/frc/robot/queuer/QueuerState.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
package frc.robot.queuer;
public enum QueuerState{
IDLE_WITH_GP,
IDLE_NO_GP,
SHOOTING,
INTAKING,
OUTTAKING;

}
18 changes: 18 additions & 0 deletions src/main/java/frc/robot/queuer/QueuerSubsystem.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
package frc.robot.queuer;

import com.ctre.phoenix6.hardware.TalonFX;

import edu.wpi.first.wpilibj.DigitalInput;
import frc.robot.util.scheduling.SubsystemPriority;
import frc.robot.util.state_machines.StateMachine;

public class QueuerSubsystem extends StateMachine<QueuerState> {
private final TalonFX motor;
private final DigitalInput sensor;

public QueuerSubsystem(TalonFX motor, DigitalInput sensor) {
super(SubsystemPriority.QUEUER, QueuerState.IDLE_NO_GP);

this.sensor = sensor;
this.motor = motor;
}}

0 comments on commit c82f451

Please sign in to comment.