mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-19 00:41:43 +00:00
Initial checkin of unified hierarchy of WPILib 2015
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
#include "CommandBase.h"
|
||||
#include "Subsystems/ExampleSubsystem.h"
|
||||
#include "Commands/Scheduler.h"
|
||||
|
||||
CommandBase::CommandBase(const char *name) : Command(name) {
|
||||
}
|
||||
|
||||
CommandBase::CommandBase() : Command() {
|
||||
}
|
||||
|
||||
// Initialize a single static instance of all of your subsystems to NULL
|
||||
ExampleSubsystem* CommandBase::examplesubsystem = 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.
|
||||
examplesubsystem = new ExampleSubsystem();
|
||||
|
||||
oi = new OI();
|
||||
}
|
||||
Reference in New Issue
Block a user