|
" 2013 FRC Java API " |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.wpi.first.wpilibj.GenericHID
edu.wpi.first.wpilibj.KinectStick
public class KinectStick
Nested Class Summary |
---|
Nested classes/interfaces inherited from class edu.wpi.first.wpilibj.GenericHID |
---|
GenericHID.Hand |
Constructor Summary | |
---|---|
KinectStick(int id)
Construct an instance of a KinectStick. |
Method Summary | |
---|---|
boolean |
getBumper(GenericHID.Hand hand)
Get the button value for the button set as the default bumper in (@link Joystick) |
double |
getRawAxis(int axis)
Get the value of the KinectStick axis. |
boolean |
getRawButton(int button)
Get the button value for buttons 1 through 12. |
double |
getThrottle()
Get the Throttle value of the KinectStick. |
boolean |
getTop(GenericHID.Hand hand)
Get the button value for the button set as the default top in (@link Joystick) |
boolean |
getTrigger(GenericHID.Hand hand)
Get the button value for the button set as the default trigger in (@link Joystick) |
double |
getTwist()
Get the Twist value of the KinectStick. |
double |
getX(GenericHID.Hand hand)
Get the X value of the KinectStick. |
double |
getY(GenericHID.Hand hand)
Get the Y value of the KinectStick. |
double |
getZ(GenericHID.Hand hand)
Get the Z value of the KinectStick. |
Methods inherited from class edu.wpi.first.wpilibj.GenericHID |
---|
getBumper, getTop, getTrigger, getX, getY, getZ |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public KinectStick(int id)
id
- which KinectStick to read, in the default gestures
an id of 1 corresponds to the left arm and 2 to the right arm.Method Detail |
---|
public double getX(GenericHID.Hand hand)
getX
in class GenericHID
hand
- Unused
public double getY(GenericHID.Hand hand)
getY
in class GenericHID
hand
- Unused
public double getZ(GenericHID.Hand hand)
getZ
in class GenericHID
hand
- Unused
public double getTwist()
getTwist
in class GenericHID
public double getThrottle()
getThrottle
in class GenericHID
public double getRawAxis(int axis)
getRawAxis
in class GenericHID
axis
- The axis to read [1-6].
public boolean getTrigger(GenericHID.Hand hand)
getTrigger
in class GenericHID
hand
- Unused
public boolean getTop(GenericHID.Hand hand)
getTop
in class GenericHID
hand
- Unused
public boolean getBumper(GenericHID.Hand hand)
getBumper
in class GenericHID
hand
- Unused
public boolean getRawButton(int button)
getRawButton
in class GenericHID
button
- The button number to be read.
|
" 2013 FRC Java API " |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |