Class PhysicalJoystick
java.lang.Object
io.github.roboblazers7617.buttonbox.Control
io.github.roboblazers7617.buttonbox.controls.Joystick
io.github.roboblazers7617.buttonbox.controls.PhysicalJoystick
A Joystick controlled through Addresses.
-
Constructor Summary
ConstructorsConstructorDescriptionPhysicalJoystick(String id, DoubleAddress xAddress, DoubleAddress yAddress, DoubleAddress buttonAddress) Creates a new PhysicalJoystick. -
Method Summary
Methods inherited from class io.github.roboblazers7617.buttonbox.controls.Joystick
getButton, getButtonTrigger, getX, getY, setButton, setupNetworkTables, setupSimulation, setX, setY, updateServerMethods inherited from class io.github.roboblazers7617.buttonbox.Control
getId, getTable, setTable, updateHardware, updateOnClient
-
Constructor Details
-
PhysicalJoystick
public PhysicalJoystick(String id, DoubleAddress xAddress, DoubleAddress yAddress, DoubleAddress buttonAddress) Creates a new PhysicalJoystick.- Parameters:
id- The ID string for the PhysicalJoystick to use.xAddress- The Address used for the X axis.yAddress- The Address used for the Y axis.buttonAddress- The Address used for the Button.
-
-
Method Details
-
updateClient
public void updateClient()Description copied from class:ControlUpdates the control's state on the client. This should get any feedback from the server, but this should not interface with the buttonbox hardware.This doesn't do anything by default, and should be overridden by the class inheritting this.
- Overrides:
updateClientin classJoystick
-