2015-01-11 16:02:49 -05:00
|
|
|
#include "CommandBase.h"
|
|
|
|
#include "Subsystems/Drivetrain.h"
|
|
|
|
#include "Subsystems/Collector.h"
|
|
|
|
#include "Subsystems/Elevator.h"
|
2015-01-31 12:16:02 -05:00
|
|
|
#include "Subsystems/DIO.h"
|
2015-01-20 07:02:46 -05:00
|
|
|
#include "Subsystems/AirCompressor.h"
|
2015-01-11 16:02:49 -05:00
|
|
|
Drivetrain* CommandBase::drivetrain = NULL;
|
|
|
|
Collector* CommandBase::collector = NULL;
|
|
|
|
Elevator* CommandBase::elevator = NULL;
|
2015-01-31 12:16:02 -05:00
|
|
|
DIO* CommandBase::dio = NULL;
|
2015-01-20 07:02:46 -05:00
|
|
|
AirCompressor* CommandBase::airCompressor = NULL;
|
2015-01-11 16:02:49 -05:00
|
|
|
OI* CommandBase::oi = NULL;
|
|
|
|
CommandBase::CommandBase(char const *name) : Command(name) {
|
|
|
|
}
|
|
|
|
CommandBase::CommandBase() : Command() {
|
|
|
|
}
|
2015-02-02 19:56:27 -05:00
|
|
|
void CommandBase::init(){
|
2015-01-11 16:02:49 -05:00
|
|
|
drivetrain = new Drivetrain();
|
|
|
|
collector = new Collector();
|
|
|
|
elevator = new Elevator();
|
2015-01-31 12:16:02 -05:00
|
|
|
dio = new DIO();
|
2015-01-20 07:02:46 -05:00
|
|
|
airCompressor = new AirCompressor();
|
2015-01-11 16:02:49 -05:00
|
|
|
oi = new OI();
|
|
|
|
}
|