Class NetworkTableButton

java.lang.Object
frc.robot.util.NetworkTableButton

public class NetworkTableButton extends Object
Creates a button on the specified network table that will run a command when clicked
  • 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 on
      name - The name of the button
      command - The command to run when the button is clicked
      runsWhileDisabled - Whether the command should run while the robot is disabled