forked from Team2489/RobotCode2014
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCommandBase.cpp
More file actions
29 lines (24 loc) · 755 Bytes
/
CommandBase.cpp
File metadata and controls
29 lines (24 loc) · 755 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
#include "CommandBase.h"
#include "Subsystems/Chassis.h"
#include "Commands/Scheduler.h"
#include "Robotmap.h"
CommandBase::CommandBase(const char *name) : Command(name) {
}
CommandBase::CommandBase() : Command() {
}
OI* CommandBase::oi = NULL;
Chassis* CommandBase::chassis = NULL;
Intake* CommandBase::intake = NULL;
Pump* CommandBase::pump = 0;
TargetingControl* CommandBase::targetingControl = 0;
Catapult* CommandBase::catapult = 0;
CrouchIndicator* CommandBase::crouchIndicator = NULL;
void CommandBase::init() {
chassis = new Chassis();
intake = new Intake();
pump = new Pump();
targetingControl = new TargetingControl();
catapult = new Catapult();
oi = new OI();
crouchIndicator = new CrouchIndicator();
}