|
| NetworkBooleanEvent (EventLoop *loop, nt::BooleanTopic topic) |
| Creates a new event with the given boolean topic determining whether it is active. More...
|
|
| NetworkBooleanEvent (EventLoop *loop, nt::BooleanSubscriber sub) |
| Creates a new event with the given boolean subscriber determining whether it is active. More...
|
|
| NetworkBooleanEvent (EventLoop *loop, std::shared_ptr< nt::NetworkTable > table, std::string_view topicName) |
| Creates a new event with the given boolean topic determining whether it is active. More...
|
|
| NetworkBooleanEvent (EventLoop *loop, std::string_view tableName, std::string_view topicName) |
| Creates a new event with the given boolean topic determining whether it is active. More...
|
|
| NetworkBooleanEvent (EventLoop *loop, nt::NetworkTableInstance inst, std::string_view tableName, std::string_view topicName) |
| Creates a new event with the given boolean topic determining whether it is active. More...
|
|
| BooleanEvent (EventLoop *loop, std::function< bool()> condition) |
| Creates a new event with the given condition determining whether it is active. More...
|
|
bool | GetAsBoolean () const |
| Check whether this event is active or not as of the last loop poll. More...
|
|
void | IfHigh (std::function< void()> action) |
| Bind an action to this event. More...
|
|
| operator std::function< bool ()>() |
|
template<class T > |
T | CastTo (std::function< T(EventLoop *, std::function< bool()>)> ctor=[](EventLoop *loop, std::function< bool()> condition) { return T(loop, condition);}) |
| A method to "downcast" a BooleanEvent instance to a subclass (for example, to a command-based version of this class). More...
|
|
BooleanEvent | operator! () |
| Creates a new event that is active when this event is inactive, i.e. More...
|
|
BooleanEvent | operator&& (std::function< bool()> rhs) |
| Composes this event with another event, returning a new event that is active when both events are active. More...
|
|
BooleanEvent | operator|| (std::function< bool()> rhs) |
| Composes this event with another event, returning a new event that is active when either event is active. More...
|
|
BooleanEvent | Rising () |
| Get a new event that events only when this one newly changes to true. More...
|
|
BooleanEvent | Falling () |
| Get a new event that triggers only when this one newly changes to false. More...
|
|
BooleanEvent | Debounce (units::second_t debounceTime, frc::Debouncer::DebounceType type=frc::Debouncer::DebounceType::kRising) |
| Creates a new debounced event from this event - it will become active when this event has been active for longer than the specified period. More...
|
|
A Button that uses a NetworkTable boolean field.
This class is provided by the NewCommands VendorDep