Class PhysicalPotentiometer
java.lang.Object
io.github.roboblazers7617.buttonbox.Control
io.github.roboblazers7617.buttonbox.controls.Knob
io.github.roboblazers7617.buttonbox.controls.PhysicalPotentiometer
A Knob controlled through Addresses by a Potentiometer.
-
Constructor Summary
ConstructorsConstructorDescriptionPhysicalPotentiometer(String id, DoubleAddress positionAddress) Creates a new PhysicalPotentiometer. -
Method Summary
Methods inherited from class io.github.roboblazers7617.buttonbox.controls.Knob
getPosition, setPosition, setupNetworkTables, setupSimulation, updateServerMethods inherited from class io.github.roboblazers7617.buttonbox.Control
getId, getTable, setTable, updateHardware, updateOnClient
-
Constructor Details
-
PhysicalPotentiometer
Creates a new PhysicalPotentiometer.- Parameters:
id- The ID string for the PhysicalPotentiometer to use.positionAddress- The Address used for the position.
-
-
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 classKnob
-