This repository has been archived by the owner on Aug 26, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
/
CommandBase.cpp
67 lines (62 loc) · 1.56 KB
/
CommandBase.cpp
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
/**
* @file CommandBase.cpp
* @brief Implementation of the command base
* @author Nyle Rodgers
* @author William Kunkel
*/
#include "CommandBase.h"
#include "Commands/Scheduler.h"
/**
* A constructor for command base
*
* @author Nyle Rodgers
*/
CommandBase::CommandBase(const char *name) : Command(name) {
}
/**
* A constructor for command base
*
* @author Nyle Rodgers
*/
CommandBase::CommandBase() : Command() {
}
Climber* CommandBase::climber = 0;
CompressorSystem* CommandBase::compressorSystem = 0;
Drive* CommandBase::drive = 0;
Pusher* CommandBase::pusher = 0;
Shooter* CommandBase::shooter = 0;
#ifdef USE_PISTON_ARTICULATOR
PistonArticulator* CommandBase::pistonArticulator = 0;
#else
ShooterArticulator* CommandBase::shooterArticulator = 0;
#endif
Lights* CommandBase::lights = 0;
VariableDial* CommandBase::variableDial = 0;
Antennae* CommandBase::antennae = 0;
NuclearOption* CommandBase::nuclearOption = 0;
Flashlight* CommandBase::flashlight = 0;
OI* CommandBase::operatorInterface = 0;
/**
* Initialize the subsystems
*
* @author Nyle Rodgers
* @author William Kunkel
*/
void CommandBase::init() {
climber = new Climber();
compressorSystem = new CompressorSystem();
drive = new Drive();
pusher = new Pusher();
shooter = new Shooter();
#ifdef USE_PISTON_ARTICULATOR
pistonArticulator = new PistonArticulator();
#else
shooterArticulator = new ShooterArticulator();
#endif
lights = new Lights();
variableDial = new VariableDial();
antennae = new Antennae();
nuclearOption = new NuclearOption();
flashlight = new Flashlight();
operatorInterface = new OI();
}