2013-12-15 18:30:16 -05:00
|
|
|
#ifndef COMMAND_BASE_H
|
|
|
|
|
#define COMMAND_BASE_H
|
|
|
|
|
|
2014-02-25 18:43:40 -05:00
|
|
|
#include <string>
|
2013-12-15 18:30:16 -05:00
|
|
|
#include "Commands/Command.h"
|
|
|
|
|
#include "Subsystems/ExampleSubsystem.h"
|
|
|
|
|
#include "OI.h"
|
2014-08-12 15:17:57 -04:00
|
|
|
#include "WPILib.h"
|
2013-12-15 18:30:16 -05:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* The base for all commands. All atomic commands should subclass CommandBase.
|
|
|
|
|
* CommandBase stores creates and stores each control system. To access a
|
|
|
|
|
* subsystem elsewhere in your code in your code use CommandBase.examplesubsystem
|
|
|
|
|
*/
|
2014-02-25 18:43:40 -05:00
|
|
|
class CommandBase: public Command
|
|
|
|
|
{
|
2013-12-15 18:30:16 -05:00
|
|
|
public:
|
2014-07-22 13:57:45 -04:00
|
|
|
CommandBase(char const *name);
|
2013-12-15 18:30:16 -05:00
|
|
|
CommandBase();
|
|
|
|
|
static void init();
|
|
|
|
|
// Create a single static instance of all of your subsystems
|
|
|
|
|
static ExampleSubsystem *examplesubsystem;
|
|
|
|
|
static OI *oi;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
#endif
|