148 explicit Faults(uint16_t faults);
183 explicit Warnings(uint16_t warnings);
247 std::vector<ServoChannel> m_servoChannels;
Definition: ServoChannel.h:39
ChannelId
Definition: ServoChannel.h:48
Definition: ServoHubConfigAccessor.h:35
Definition: ServoHubConfig.h:39
Definition: ServoHub.h:43
REVLibError ClearFaults()
Definition: ServoHub.cpp:165
Warnings GetWarnings() const
Definition: ServoHub.cpp:149
bool HasActiveWarning() const
Definition: ServoHub.cpp:90
double GetDeviceCurrent() const
Definition: ServoHub.cpp:179
Warnings GetStickyWarnings() const
Definition: ServoHub.cpp:157
bool HasStickyFault() const
Definition: ServoHub.cpp:83
REVLibError Configure(ServoHubConfig &config, ResetMode resetMode=ResetMode::kNoResetSafeParameters)
Definition: ServoHub.cpp:54
REVLibError ConfigureAsync(ServoHubConfig &config, ResetMode resetMode=ResetMode::kNoResetSafeParameters)
Definition: ServoHub.cpp:67
REVLibError SetBankPulsePeriod(Bank bank, int pulsePeriod_us)
Definition: ServoHub.cpp:203
Bank
Definition: ServoHub.h:235
bool HasStickyWarning() const
Definition: ServoHub.cpp:97
ServoHub(int deviceID)
Definition: ServoHub.cpp:40
~ServoHub() override
Definition: ServoHub.cpp:52
ServoChannel & GetServoChannel(ServoChannel::ChannelId channelId)
Definition: ServoHub.cpp:196
Faults GetFaults() const
Definition: ServoHub.cpp:113
ResetMode
Definition: ServoHub.h:70
double GetServoVoltage() const
Definition: ServoHub.cpp:186
bool HasActiveFault() const
Definition: ServoHub.cpp:76
Faults GetStickyFaults() const
Definition: ServoHub.cpp:121
ServoHubConfigAccessor configAccessor
Definition: ServoHub.h:55
double GetDeviceVoltage() const
Definition: ServoHub.cpp:172
Definition: ServoHubLowLevel.h:39
Definition: ServoHubSim.h:41
Definition: ServoChannelConfig.h:34
REVLibError
Definition: REVLibError.h:33
Definition: ServoHub.h:141
bool lowBattery
Definition: ServoHub.h:145
bool hardware
Definition: ServoHub.h:143
bool regulatorPowerGood
Definition: ServoHub.h:142
bool firmware
Definition: ServoHub.h:144
uint16_t rawBits
Definition: ServoHub.h:146
Faults(uint16_t faults)
Definition: ServoHub.cpp:104
Definition: ServoHub.h:170
bool hasReset
Definition: ServoHub.h:174
bool channel0Overcurrent
Definition: ServoHub.h:175
bool channel2Overcurrent
Definition: ServoHub.h:177
Warnings(uint16_t warnings)
Definition: ServoHub.cpp:129
bool channel4Overcurrent
Definition: ServoHub.h:179
bool channel3Overcurrent
Definition: ServoHub.h:178
bool canBusOff
Definition: ServoHub.h:173
bool canWarning
Definition: ServoHub.h:172
bool brownout
Definition: ServoHub.h:171
bool channel1Overcurrent
Definition: ServoHub.h:176
bool channel5Overcurrent
Definition: ServoHub.h:180
uint16_t rawBits
Definition: ServoHub.h:181