The Motor Safety feature acts as a watchdog timer for an individual motor.
Definition MotorSafety.h:25
Class for Spike style relay outputs.
Definition Relay.h:33
void InitSendable(wpi::SendableBuilder &builder) override
Initializes this Sendable object.
Direction
The Direction(s) that a relay is configured to operate in.
Definition Relay.h:52
@ kForwardOnly
Only forward is valid.
Definition Relay.h:56
@ kReverseOnly
Only reverse is valid.
Definition Relay.h:58
@ kBothDirections
Both directions are valid.
Definition Relay.h:54
Value Get() const
Get the Relay State.
Relay & operator=(Relay &&)=default
void StopMotor() override
Called to stop the motor when the timeout expires.
std::string GetDescription() const override
Returns a description to print when an error occurs.
void Set(Value value)
Set the relay state.
Value
The state to drive a Relay to.
Definition Relay.h:38
@ kForward
Forward.
Definition Relay.h:44
@ kOff
Off.
Definition Relay.h:40
@ kReverse
Reverse.
Definition Relay.h:46
@ kOn
On.
Definition Relay.h:42
~Relay() override
Free the resource associated with a relay.
Relay(int channel, Direction direction=kBothDirections)
Relay constructor given a channel.
A move-only C++ wrapper around a HAL handle.
Definition Types.h:96
Helper class for building Sendable dashboard representations.
Definition SendableBuilder.h:21
A helper class for use with objects that add themselves to SendableRegistry.
Definition SendableHelper.h:21
Interface for Sendable objects.
Definition Sendable.h:16