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:32
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:51
@ kForwardOnly
Only forward is valid.
Definition: Relay.h:55
@ kReverseOnly
Only reverse is valid.
Definition: Relay.h:57
@ kBothDirections
Both directions are valid.
Definition: Relay.h:53
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:37
@ kForward
Forward.
Definition: Relay.h:43
@ kOff
Off.
Definition: Relay.h:39
@ kReverse
Reverse.
Definition: Relay.h:45
@ kOn
On.
Definition: Relay.h:41
~Relay() override
Free the resource associated with a relay.
Relay(int channel, Direction direction=kBothDirections)
Relay constructor given a channel.
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:19
Interface for Sendable objects.
Definition: Sendable.h:16
Definition: AprilTagPoseEstimator.h:15