Class NetworkButton

java.lang.Object
edu.wpi.first.wpilibj2.command.button.Trigger
edu.wpi.first.wpilibj2.command.button.NetworkButton
All Implemented Interfaces:
BooleanSupplier

public class NetworkButton
extends Trigger
A Trigger that uses a NetworkTable boolean field.

This class is provided by the NewCommands VendorDep

  • Constructor Details

    • NetworkButton

      public NetworkButton​(BooleanTopic topic)
      Creates a NetworkButton that commands can be bound to.
      Parameters:
      topic - The boolean topic that contains the value.
    • NetworkButton

      Creates a NetworkButton that commands can be bound to.
      Parameters:
      sub - The boolean subscriber that provides the value.
    • NetworkButton

      public NetworkButton​(NetworkTable table, String field)
      Creates a NetworkButton that commands can be bound to.
      Parameters:
      table - The table where the networktable value is located.
      field - The field that is the value.
    • NetworkButton

      public NetworkButton​(String table, String field)
      Creates a NetworkButton that commands can be bound to.
      Parameters:
      table - The table where the networktable value is located.
      field - The field that is the value.
    • NetworkButton

      public NetworkButton​(NetworkTableInstance inst, String table, String field)
      Creates a NetworkButton that commands can be bound to.
      Parameters:
      inst - The NetworkTable instance to use
      table - The table where the networktable value is located.
      field - The field that is the value.