-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCommandBase.cpp
More file actions
42 lines (31 loc) · 1.02 KB
/
CommandBase.cpp
File metadata and controls
42 lines (31 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#include "CommandBase.h"
#include <Commands/Scheduler.h>
#include "Subsystems/VisionTracking.h"
#include "Subsystems/DriveTrain.h"
#include "Subsystems/RopeClimber.h"
#include "Subsystems/GearSystem.h"
#include "Subsystems/Debug.h"
VisionTracking* CommandBase::vt = NULL;
OI* CommandBase::controls = NULL;
DriveTrain* CommandBase::drivetrain = NULL;
RopeClimber* CommandBase::ropeclimber = NULL;
GearSystem* CommandBase::gearsystem = NULL;
Debug* CommandBase::debug = NULL;
CommandBase::CommandBase(char const *name): frc::Command(name) {}
CommandBase::CommandBase(): frc::Command() {}
void CommandBase::init() {
std::cout << "[commandbase] CommandBase initalizing..." << std::endl;
drivetrain = NULL;
controls = NULL;
ropeclimber = NULL;
gearsystem = NULL;
vt = NULL;
debug = NULL;
drivetrain = new DriveTrain();
controls = new OI();
ropeclimber = new RopeClimber();
gearsystem = new GearSystem();
vt = new VisionTracking();
debug = new Debug();
std::cout << "[commandbase] CommandBase initialized." << std::endl;
}