-
Notifications
You must be signed in to change notification settings - Fork 0
/
OI.cpp~
47 lines (43 loc) · 1.79 KB
/
OI.cpp~
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
43
44
45
46
47
// RobotBuilder Version: 1.0
//
// This file was generated by RobotBuilder. It contains sections of
// code that are automatically generated and assigned by robotbuilder.
// These sections will be updated in the future when you export to
// C++ from RobotBuilder. Do not put any code or make any change in
// the blocks indicating autogenerated code or it will be lost on an
// update. Deleting the comments indicating the section will prevent
// it from being updated in th future.
#include "OI.h"
// BEGIN AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=INCLUDES
#include "SmartDashboard/SmartDashboard.h"
#include "Commands/AirCompressorRun.h"
#include "Commands/AutonomousCommand.h"
#include "Commands/BallArmExtend.h"
#include "Commands/BallArmRetract.h"
#include "Commands/DriveRobot.h"
// END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=INCLUDES
OI::OI() {
// Process operator interface input here.
// BEGIN AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=CONSTRUCTORS
controlJoystick = new Joystick(3);
rightJoystick = new Joystick(2);
leftJoystick = new Joystick(1);
// SmartDashboard Buttons
SmartDashboard::PutData("Autonomous Command", new AutonomousCommand());
SmartDashboard::PutData("DriveRobot", new DriveRobot());
SmartDashboard::PutData("BallArmRetract", new BallArmRetract());
SmartDashboard::PutData("BallArmExtend", new BallArmExtend());
SmartDashboard::PutData("AirCompressorRun", new AirCompressorRun());
// END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=CONSTRUCTORS
}
// BEGIN AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=FUNCTIONS
Joystick* OI::getControlJoystick() {
return controlJoystick;
}
Joystick* OI::getRightJoystick() {
return rightJoystick;
}
Joystick* OI::getLeftJoystick() {
return leftJoystick;
}
// END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=FUNCTIONS