Skip to content
This repository was archived by the owner on Jan 10, 2025. It is now read-only.

Commit c929a0a

Browse files
committed
Start robot manager
1 parent 6ef110c commit c929a0a

File tree

2 files changed

+45
-0
lines changed

2 files changed

+45
-0
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
package frc.robot.robot_manager;
2+
3+
import frc.robot.util.scheduling.SubsystemPriority;
4+
import frc.robot.util.state_machines.StateMachine;
5+
6+
public class RobotManager extends StateMachine<RobotState> {
7+
public RobotManager() {
8+
super(SubsystemPriority.ROBOT_MANAGER, RobotState.IDLE_NO_GP);
9+
}
10+
11+
@Override
12+
protected void collectInputs() {}
13+
14+
@Override
15+
public void robotPeriodic() {
16+
super.robotPeriodic();
17+
}
18+
}
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
package frc.robot.robot_manager;
2+
3+
public enum RobotState {
4+
IDLE_WITH_GP,
5+
IDLE_NO_GP,
6+
7+
AMP_WAITING,
8+
AMP_PREPARE_TO_SCORE,
9+
AMP_SCORING,
10+
11+
SPEAKER_WAITING,
12+
SPEAKER_PREPARE_TO_SCORE,
13+
SPEAKER_SCORING,
14+
15+
FEEDING_WAITING,
16+
FEEDING_PREPARE_TO_SHOOT,
17+
FEEDING_SHOOTING,
18+
19+
INTAKING,
20+
OUTTAKING,
21+
22+
UNJAM,
23+
24+
PASS_WAITING,
25+
PASS_PREPARE_TO_SHOOT,
26+
PASS_SHOOTING;
27+
}

0 commit comments

Comments
 (0)