WPILib 2012
WPILibRoboticsLibraryforFRC
Classes | Public Member Functions
KinectStick Class Reference
Inheritance diagram for KinectStick:
GenericHID ErrorBase

List of all members.

Classes

union  KinectStickData

Public Member Functions

 KinectStick (int id)
virtual float GetX (JoystickHand hand=kRightHand)
virtual float GetY (JoystickHand hand=kRightHand)
virtual float GetZ ()
virtual float GetTwist ()
virtual float GetThrottle ()
virtual float GetRawAxis (UINT32 axis)
virtual bool GetTrigger (JoystickHand hand=kRightHand)
virtual bool GetTop (JoystickHand hand=kRightHand)
virtual bool GetBumper (JoystickHand hand=kRightHand)
virtual bool GetRawButton (UINT32 button)

Constructor & Destructor Documentation

KinectStick::KinectStick ( int  id) [explicit]

Kinect joystick constructor

Parameters:
idvalue is either 1 or 2 for the left or right joystick decoded from gestures interpreted by the Kinect server on the Driver Station computer.

Member Function Documentation

float KinectStick::GetRawAxis ( UINT32  axis) [virtual]

Get the joystick axis value by axis number This is only supported for X in the default gestures and all others always returns 0

Implements GenericHID.

float KinectStick::GetThrottle ( ) [virtual]

Get the Throttle joystick value This is not supported in the default gestures and always returns 0

Implements GenericHID.

bool KinectStick::GetTop ( JoystickHand  hand = kRightHand) [virtual]

Get the top button value for the joystick

Parameters:
hand
Returns:
true if the top button is pressed

Implements GenericHID.

bool KinectStick::GetTrigger ( JoystickHand  hand = kRightHand) [virtual]

Get the trigger value for the joystick

Parameters:
hand
Returns:
true if the triger is pressed

Implements GenericHID.

float KinectStick::GetTwist ( ) [virtual]

Get the Twist joystick value This is not supported in the default gestures and always returns 0

Implements GenericHID.

float KinectStick::GetX ( JoystickHand  hand = kRightHand) [virtual]

Get the X joystick value This is not supported in the default gestures and always returns 0

Implements GenericHID.

float KinectStick::GetY ( JoystickHand  hand = kRightHand) [virtual]

Get the joystick Y value

Parameters:
hand
Returns:
The floating point representation of the Y value

Implements GenericHID.

float KinectStick::GetZ ( ) [virtual]

Get the Z joystick value This is not supported in the default gestures and always returns 0

Implements GenericHID.


The documentation for this class was generated from the following files:
 All Classes Functions Variables