mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-19 00:41:43 +00:00
25 lines
625 B
C
25 lines
625 B
C
|
|
#ifndef COMMAND_BASE_H
|
||
|
|
#define COMMAND_BASE_H
|
||
|
|
|
||
|
|
#include "Commands/Command.h"
|
||
|
|
#include "Subsystems/ExampleSubsystem.h"
|
||
|
|
#include "OI.h"
|
||
|
|
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 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
|
||
|
|
*/
|
||
|
|
class CommandBase: public Command {
|
||
|
|
public:
|
||
|
|
CommandBase(const char *name);
|
||
|
|
CommandBase();
|
||
|
|
static void init();
|
||
|
|
// Create a single static instance of all of your subsystems
|
||
|
|
static ExampleSubsystem *examplesubsystem;
|
||
|
|
static OI *oi;
|
||
|
|
};
|
||
|
|
|
||
|
|
#endif
|