|
|||||||||
| 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 |
|---|
clone, equals, finalize, 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 GenericHIDhand - Unused
public double getY(GenericHID.Hand hand)
getY in class GenericHIDhand - Unused
public double getZ(GenericHID.Hand hand)
getZ in class GenericHIDhand - Unused
public double getTwist()
getTwist in class GenericHIDpublic double getThrottle()
getThrottle in class GenericHIDpublic double getRawAxis(int axis)
getRawAxis in class GenericHIDaxis - The axis to read [1-6].
public boolean getTrigger(GenericHID.Hand hand)
getTrigger in class GenericHIDhand - Unused
public boolean getTop(GenericHID.Hand hand)
getTop in class GenericHIDhand - Unused
public boolean getBumper(GenericHID.Hand hand)
getBumper in class GenericHIDhand - Unused
public boolean getRawButton(int button)
getRawButton in class GenericHIDbutton - The button number to be read.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||