DeepSpace  2019
OI.cpp
Go to the documentation of this file.
1 #include "OI.h"
2 #include "RobotMap.h"
3 
4 OI::OI() {
5  this->pJoystickDrive = new frc::XboxController(XBOX_CONTROLLER_DRIVE_PORT);
6  this->pJoystickOperator = new frc::XboxController(XBOX_CONTROLLER_OPERATOR_PORT);
7  this->pJoystickDebug = new frc::XboxController(XBOX_CONTROLLER_DEBUG_PORT);
8 }
9 
10 frc::XboxController* OI::GetJoystickDrive() {
11  return this->pJoystickDrive;
12 }
13 
14 frc::XboxController* OI::GetJoystickOperator() {
15  return this->pJoystickOperator;
16 }
17 
18 frc::XboxController* OI::GetJoystickDebug(){
19  return this->pJoystickDebug;
20 }
frc::XboxController * GetJoystickOperator(void)
Definition: OI.cpp:14
#define XBOX_CONTROLLER_DEBUG_PORT
Definition: RobotMap.h:108
frc::XboxController * pJoystickOperator
Pointer for Operator's joystick.
Definition: OI.h:34
frc::XboxController * pJoystickDebug
Pointer for Debug joystick.
Definition: OI.h:35
frc::XboxController * GetJoystickDrive(void)
Definition: OI.cpp:10
OI()
Class constructor.
Definition: OI.cpp:4
#define XBOX_CONTROLLER_OPERATOR_PORT
Definition: RobotMap.h:107
#define XBOX_CONTROLLER_DRIVE_PORT
Definition: RobotMap.h:106
frc::XboxController * GetJoystickDebug(void)
Definition: OI.cpp:18
frc::XboxController * pJoystickDrive
Pointer for Driver's joystick.
Definition: OI.h:33