-
Notifications
You must be signed in to change notification settings - Fork 0
/
CommandBase.cpp
33 lines (29 loc) · 1.01 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
#include "CommandBase.h"
#include "Subsystems/ExampleSubsystem.h"
#include "Commands/Scheduler.h"
#include <iostream>
CommandBase::CommandBase(const char *name) : Command(name) {
}
CommandBase::CommandBase() : Command() {
}
// Initialize a single static instance of all of your subsystems to NULL
Chassis* CommandBase::chassis = NULL;
Launcher* CommandBase::launcher = NULL;
GrabberArms* CommandBase::grabberArms = NULL;
GrabberWheels* CommandBase::grabberWheels = NULL;
OI* CommandBase::oi = NULL;
void CommandBase::init() {
// Create a single static instance of all of your subsystems. The following
// line should be repeated for each subsystem in the project.
std::cout<<"Chassis\n";
chassis = new Chassis();
std::cout<<"Launcher\n";
launcher = new Launcher();
std::cout<<"Grabber Arms\n";
grabberArms = new GrabberArms();
std::cout<<"Grabber Wheels\n";
grabberWheels = new GrabberWheels();
std::cout<<"OI\n";
oi = new OI();
std::cout<<"Finished CommandBase::init"<<std::endl;
}