51 void Set(
double speed)
override;
58 double Get()
const override;
91 bool m_isInverted =
false;
92 bool m_disabled =
false;
Class to write to digital outputs.
Definition: DigitalOutput.h:25
Interface for motor controlling devices.
Definition: MotorController.h:14
The Motor Safety feature acts as a watchdog timer for an individual motor.
Definition: MotorSafety.h:25
Nidec Brushless Motor.
Definition: NidecBrushless.h:25
NidecBrushless(int pwmChannel, int dioChannel)
Constructor.
double Get() const override
Get the recently set value of the PWM.
void StopMotor() override
NidecBrushless(NidecBrushless &&)=default
void InitSendable(wpi::SendableBuilder &builder) override
Initializes this Sendable object.
std::string GetDescription() const override
The return value from this method is printed out when an error occurs.
void Enable()
Re-enable the motor after Disable() has been called.
int GetChannel() const
Gets the channel number associated with the object.
void Set(double speed) override
Set the PWM value.
bool GetInverted() const override
Common interface for returning the inversion state of a motor controller.
void Disable() override
Disable the motor.
~NidecBrushless() override=default
NidecBrushless & operator=(NidecBrushless &&)=default
void SetInverted(bool isInverted) override
Common interface for inverting direction of a motor controller.
Class implements the PWM generation in the FPGA.
Definition: PWM.h:26
Definition: SendableBuilder.h:18
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