2013-12-15 18:30:16 -05:00
|
|
|
#include "CommandBase.h"
|
|
|
|
|
#include "Subsystems/ExampleSubsystem.h"
|
|
|
|
|
#include "Commands/Scheduler.h"
|
|
|
|
|
|
|
|
|
|
// Initialize a single static instance of all of your subsystems to NULL
|
|
|
|
|
ExampleSubsystem* CommandBase::examplesubsystem = NULL;
|
|
|
|
|
OI* CommandBase::oi = NULL;
|
|
|
|
|
|
2014-07-22 13:57:45 -04:00
|
|
|
CommandBase::CommandBase(char const *name) :
|
2014-02-25 18:43:40 -05:00
|
|
|
Command(name)
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
CommandBase::CommandBase() :
|
|
|
|
|
Command()
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void CommandBase::init()
|
|
|
|
|
{
|
|
|
|
|
// Create a single static instance of all of your subsystems. The following
|
2013-12-15 18:30:16 -05:00
|
|
|
// line should be repeated for each subsystem in the project.
|
|
|
|
|
examplesubsystem = new ExampleSubsystem();
|
2014-02-25 18:43:40 -05:00
|
|
|
|
2013-12-15 18:30:16 -05:00
|
|
|
oi = new OI();
|
|
|
|
|
}
|