12#include "wpi/units/time.hpp"
79 wpi::units::microsecond_t maxPwm);
91 wpi::units::microsecond_t GetFullRangeScaleFactor()
const;
96 wpi::units::microsecond_t m_minPwm = 600_us;
97 wpi::units::microsecond_t m_maxPwm = 2400_us;
99 bool m_reversed =
false;
bool IsHubConnected() const
Gets if the underlying ExpansionHub is connected.
Definition ExpansionHubCRServo.hpp:67
ExpansionHubCRServo(int usbId, int channel)
Constructs a continuous rotation servo at the requested channel on a specific USB port.
void SetPulseWidth(wpi::units::microsecond_t pulseWidth)
Sets the raw pulse width output on the servo.
void SetThrottle(double value)
Set the servo throttle.
void SetEnabled(bool enabled)
Sets if the servo output is enabled or not.
void SetFramePeriod(wpi::units::microsecond_t framePeriod)
Sets the frame period for the servo.
~ExpansionHubCRServo() noexcept
void SetPWMRange(wpi::units::microsecond_t minPwm, wpi::units::microsecond_t maxPwm)
Sets the PWM range for the servo.
void SetReversed(bool reversed)
Sets whether the servo is reversed.
This class controls a REV ExpansionHub plugged in over USB to Systemcore.
Definition ExpansionHub.hpp:18
NetworkTables Boolean publisher.
Definition BooleanTopic.hpp:126
NetworkTables Integer publisher.
Definition IntegerTopic.hpp:126
Definition CvSource.hpp:15