NetworkBooleanEvent

class wpilib.event.NetworkBooleanEvent(*args, **kwargs)

Bases: BooleanEvent

A Button that uses a NetworkTable boolean field.

This class is provided by the NewCommands VendorDep

Overloaded function.

  1. __init__(self: wpilib.event._event.NetworkBooleanEvent, loop: wpilib.event._event.EventLoop, topic: ntcore._ntcore.BooleanTopic) -> None

Creates a new event with the given boolean topic determining whether it is active.

Parameters:
  • loop – the loop that polls this event

  • topic – The boolean topic that contains the value

  1. __init__(self: wpilib.event._event.NetworkBooleanEvent, loop: wpilib.event._event.EventLoop, sub: ntcore._ntcore.BooleanSubscriber) -> None

Creates a new event with the given boolean subscriber determining whether it is active.

Parameters:
  • loop – the loop that polls this event

  • sub – The boolean subscriber that provides the value

  1. __init__(self: wpilib.event._event.NetworkBooleanEvent, loop: wpilib.event._event.EventLoop, table: ntcore._ntcore.NetworkTable, topicName: str) -> None

Creates a new event with the given boolean topic determining whether it is active.

Parameters:
  • loop – the loop that polls this event

  • table – The NetworkTable that contains the topic

  • topicName – The topic name within the table that contains the value

  1. __init__(self: wpilib.event._event.NetworkBooleanEvent, loop: wpilib.event._event.EventLoop, tableName: str, topicName: str) -> None

Creates a new event with the given boolean topic determining whether it is active.

Parameters:
  • loop – the loop that polls this event

  • tableName – The NetworkTable name that contains the topic

  • topicName – The topic name within the table that contains the value

  1. __init__(self: wpilib.event._event.NetworkBooleanEvent, loop: wpilib.event._event.EventLoop, inst: ntcore._ntcore.NetworkTableInstance, tableName: str, topicName: str) -> None

Creates a new event with the given boolean topic determining whether it is active.

Parameters:
  • loop – the loop that polls this event

  • inst – The NetworkTable instance to use

  • tableName – The NetworkTable that contains the topic

  • topicName – The topic name within the table that contains the value