Class PhysicalButton
java.lang.Object
io.github.roboblazers7617.buttonbox.Control
io.github.roboblazers7617.buttonbox.controls.Button
io.github.roboblazers7617.buttonbox.controls.PhysicalButton
A button controlled by an
Address.-
Nested Class Summary
Nested classes/interfaces inherited from class io.github.roboblazers7617.buttonbox.controls.Button
Button.ButtonMode -
Constructor Summary
ConstructorsConstructorDescriptionPhysicalButton(String id, DoubleAddress buttonAddress) Creates a new PhysicalButton. -
Method Summary
Methods inherited from class io.github.roboblazers7617.buttonbox.controls.Button
getState, getTrigger, setMode, setPressed, setupNetworkTables, setupSimulation, updateServerMethods 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: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 classButton
-