-
Notifications
You must be signed in to change notification settings - Fork 0
/
CommandBase.h
44 lines (36 loc) · 1.08 KB
/
CommandBase.h
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
43
44
#ifndef COMMAND_BASE_H
#define COMMAND_BASE_H
#include "Commands/Command.h"
#include "Subsystems/Chassis.h"
#include "Subsystems/Acquisition.h"
#include "Subsystems/LaunchShooter.h"
#include "Subsystems/LaunchTilter.h"
#include "Subsystems/Arm.h"
#include "Subsystems/ToLauncher.h"
#include "OI.h"
//#include "Subsystems/Camera.h"
/**
* The base for all commands. All atomic commands should subclass CommandBase.
* CommandBase stores creates and stores each control system. To access a
* subsystem elsewhere in your code in your code use CommandBase.examplesubsystem
*/
class CommandBase: public Command {
public:
CommandBase(const char *name);
CommandBase();
static void init();
// Create a single static instance of all of your subsystems
static Chassis* chassis;
static Acquisition* acquisition;
static LaunchShooter* launchShooter;
static LaunchTilter* launchTilter;
static Arm* arm;
static ToLauncher* toLauncher;
/*static SmartDashboard* sd;
static Camera* camera;
*/
static OI *oi;
static bool autonomousEnabled;
static int mode; // Autonomous mode
};
#endif