NetworkBooleanEvent
- class wpilib.NetworkBooleanEvent(*args, **kwargs)
Bases:
BooleanEventA Button that uses a NetworkTable boolean field.
Overloaded function.
__init__(self: wpilib._wpilib.NetworkBooleanEvent, loop: wpilib._wpilib.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
__init__(self: wpilib._wpilib.NetworkBooleanEvent, loop: wpilib._wpilib.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
__init__(self: wpilib._wpilib.NetworkBooleanEvent, loop: wpilib._wpilib.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
__init__(self: wpilib._wpilib.NetworkBooleanEvent, loop: wpilib._wpilib.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
__init__(self: wpilib._wpilib.NetworkBooleanEvent, loop: wpilib._wpilib.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