DeepSpace  2019
OI Class Reference

Operator Interface allows various commands to access the xbox controllers through the DriverStation. More...

#include <OI.h>

Public Member Functions

 OI ()
 Class constructor. More...
 
frc::XboxController * GetJoystickDrive (void)
 
frc::XboxController * GetJoystickOperator (void)
 
frc::XboxController * GetJoystickDebug (void)
 

Private Attributes

frc::XboxController * pJoystickDrive
 Pointer for Driver's joystick. More...
 
frc::XboxController * pJoystickOperator
 Pointer for Operator's joystick. More...
 
frc::XboxController * pJoystickDebug
 Pointer for Debug joystick. More...
 

Detailed Description

Operator Interface allows various commands to access the xbox controllers through the DriverStation.

Definition at line 7 of file OI.h.

Constructor & Destructor Documentation

◆ OI()

OI::OI ( )

Class constructor.

Definition at line 4 of file OI.cpp.

Member Function Documentation

◆ GetJoystickDebug()

frc::XboxController * OI::GetJoystickDebug ( void  )

Function for getting the Debug joystick data

Returns
Pointer to the debug joystick

Definition at line 18 of file OI.cpp.

◆ GetJoystickDrive()

frc::XboxController * OI::GetJoystickDrive ( void  )

Function for getting the Driver's joystick data

Returns
Pointer to the driver's joystick

Definition at line 10 of file OI.cpp.

◆ GetJoystickOperator()

frc::XboxController * OI::GetJoystickOperator ( void  )

Function for getting the Operator's joystick data

Returns
Pointer to the operator's joystick

Definition at line 14 of file OI.cpp.

Member Data Documentation

◆ pJoystickDebug

frc::XboxController* OI::pJoystickDebug
private

Pointer for Debug joystick.

Definition at line 35 of file OI.h.

◆ pJoystickDrive

frc::XboxController* OI::pJoystickDrive
private

Pointer for Driver's joystick.

Definition at line 33 of file OI.h.

◆ pJoystickOperator

frc::XboxController* OI::pJoystickOperator
private

Pointer for Operator's joystick.

Definition at line 34 of file OI.h.


The documentation for this class was generated from the following files: