-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRobot.h
More file actions
42 lines (36 loc) · 1 KB
/
Robot.h
File metadata and controls
42 lines (36 loc) · 1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#pragma once
#include <TimedRobot.h>
#include <SmartDashboard/SendableChooser.h>
#include "Subsystems/DriveTrain.h"
#include "Subsystems/Shooter.h"
#include "Subsystems/Grompers.h"
#include "Subsystems/Feeder.h"
#include "OI.h"
class Robot : public frc::TimedRobot {
public:
// Subsystems
static DriveTrain drivetrain;
static Shooter shooter;
static Grompers grompers;
static Feeder feeder;
// Operator Interface
static OI oi;
// Pre Game
enum Plate { SwitchClose, ScaleMiddle, SwitchFar };
enum Position { Left = 'L', Middle = 'M', Right = 'R' };
static Position* GetGameData();
static Position GetSwitchSide();
frc::SendableChooser<Position> *position_selector;
private:
// Robot States
void RobotInit() override;
void RobotPeriodic() override;
void DisabledInit() override;
void DisabledPeriodic() override;
void AutonomousInit() override;
void AutonomousPeriodic() override;
void TeleopInit() override;
void TeleopPeriodic() override;
void TestInit() override;
void TestPeriodic() override;
};