Class PhysicalButton
java.lang.Object
io.github.roboblazers7617.buttonbox.Control
io.github.roboblazers7617.buttonbox.controls.Button
io.github.roboblazers7617.buttonbox.controls.PhysicalButton
-
Nested Class Summary
Nested classes/interfaces inherited from class io.github.roboblazers7617.buttonbox.controls.Button
Button.ButtonMode
-
Constructor Summary
ConstructorDescriptionPhysicalButton
(String id, Address buttonAddress) Creates a new PhysicalButton. -
Method Summary
Methods inherited from class io.github.roboblazers7617.buttonbox.controls.Button
getState, getTrigger, setMode, setPressed, setupNetworkTables, setupSimulation, updateServer
Methods inherited from class io.github.roboblazers7617.buttonbox.Control
getId, getTable, setTable, updateHardware, updateOnClient
-
Constructor Details
-
PhysicalButton
Creates a new PhysicalButton.- Parameters:
id
- The ID string for the PhysicalButton to use.buttonAddress
- The Address for the PhysicalButton to use.- See Also:
-
-
Method Details
-
updateClient
public void updateClient()Description copied from class:Control
Updates 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:
updateClient
in classButton
-