54 void Set(
double speed)
override;
61 double Get()
const override;
94 bool m_isInverted =
false;
95 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:28
NidecBrushless(int pwmChannel, int dioChannel)
Constructor.
double Get() const override
Get the recently set value of the PWM.
void StopMotor() override
Called to stop the motor when the timeout expires.
NidecBrushless(NidecBrushless &&)=default
void InitSendable(wpi::SendableBuilder &builder) override
Initializes this Sendable object.
std::string GetDescription() const override
Returns a description to print 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
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
#define WPI_IGNORE_DEPRECATED
Definition: deprecated.h:20
#define WPI_UNIGNORE_DEPRECATED
Definition: deprecated.h:31
Definition: AprilTagPoseEstimator.h:15