Package | Description |
---|---|
edu.wpi.first.wpilibj |
The WPI Robotics library (WPILibJ) is a set of Java classes that interfaces to the hardware in the FRC
control system and your robot.
|
Modifier and Type | Field and Description |
---|---|
static GenericHID.Hand |
GenericHID.Hand.kLeft
hand: left
|
static GenericHID.Hand |
GenericHID.Hand.kRight
hand: right
|
Modifier and Type | Method and Description |
---|---|
boolean |
Joystick.getBumper(GenericHID.Hand hand)
This is not supported for the Joystick.
|
abstract boolean |
GenericHID.getBumper(GenericHID.Hand hand)
Is the bumper pressed
|
boolean |
Joystick.getTop(GenericHID.Hand hand)
Read the state of the top button on the joystick.
|
abstract boolean |
GenericHID.getTop(GenericHID.Hand hand)
Is the top button pressed
|
boolean |
Joystick.getTrigger(GenericHID.Hand hand)
Read the state of the trigger on the joystick.
|
abstract boolean |
GenericHID.getTrigger(GenericHID.Hand hand)
Is the trigger pressed
|
double |
Joystick.getX(GenericHID.Hand hand)
Get the X value of the joystick.
|
abstract double |
GenericHID.getX(GenericHID.Hand hand)
Get the x position of HID
|
double |
Joystick.getY(GenericHID.Hand hand)
Get the Y value of the joystick.
|
abstract double |
GenericHID.getY(GenericHID.Hand hand)
Get the y position of the HID
|
double |
Joystick.getZ(GenericHID.Hand hand)
Get the Z value of the joystick.
|
abstract double |
GenericHID.getZ(GenericHID.Hand hand)
Get the z position of the HID
|
Copyright © 2015. All rights reserved.