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
|
2015-07-24 19:19:40 -04:00
|
|
|
std::unique_ptr<ExampleSubsystem> CommandBase::examplesubsystem;
|
|
|
|
|
std::unique_ptr<OI> CommandBase::oi;
|
2013-12-15 18:30:16 -05:00
|
|
|
|
2015-07-24 19:19:40 -04:00
|
|
|
CommandBase::CommandBase(const std::string &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.
|
2015-07-24 19:19:40 -04:00
|
|
|
examplesubsystem.reset(new ExampleSubsystem());
|
2014-02-25 18:43:40 -05:00
|
|
|
|
2015-07-24 19:19:40 -04:00
|
|
|
oi.reset(new OI());
|
2013-12-15 18:30:16 -05:00
|
|
|
}
|