Package frc.robot.util
Class NetworkTableButton
java.lang.Object
frc.robot.util.NetworkTableButton
Creates a button on the specified network table that will run a command when clicked
-
Constructor Summary
ConstructorDescriptionNetworkTableButton
(String networkTablePath, String name, Command command, boolean runsWhileDisabled) Creates a button on the specified network table that will run a command when clicked -
Method Summary
-
Constructor Details
-
NetworkTableButton
public NetworkTableButton(String networkTablePath, String name, Command command, boolean runsWhileDisabled) Creates a button on the specified network table that will run a command when clicked- Parameters:
networkTablePath
- The path to the network table to create the button onname
- The name of the buttoncommand
- The command to run when the button is clickedrunsWhileDisabled
- Whether the command should run while the robot is disabled
-