-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathCommandBase.h
More file actions
35 lines (30 loc) · 967 Bytes
/
CommandBase.h
File metadata and controls
35 lines (30 loc) · 967 Bytes
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
#ifndef COMMAND_BASE_H
#define COMMAND_BASE_H
#include "Commands/Command.h"
#include "OI.h"
#include "Subsystems/Chassis.h"
#include "Subsystems/Pump.h"
#include "Subsystems/TargetingControl.h"
#include "Subsystems/Catapult.h"
#include "Subsystems/Intake.h"
#include "Subsystems/CrouchIndicator.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 OI *oi;
static Chassis* chassis;
static Intake* intake;
static Pump* pump;
static TargetingControl* targetingControl;
static Catapult* catapult;
static CrouchIndicator* crouchIndicator;
};
#endif