|
Thunderbots Project
|
#include <motor.h>
Public Member Functions | |
| MotorFaultIndicator () | |
| MotorFaultIndicator (bool drive_enabled, std::unordered_set< TbotsProto::MotorFault > &motor_faults) | |
Public Attributes | |
| bool | drive_enabled |
| std::unordered_set< TbotsProto::MotorFault > | motor_faults |
Holds motor fault information for a particular motor and whether any fault has caused the motor to be disabled.
|
inline |
Construct a default indicator of no faults and running motors.
|
inline |
Construct an indicator with faults and whether the motor is enabled.
| drive_enabled | true if the motor is enabled, false if disabled due to a motor fault |
| motor_faults | a set of faults associated with this motor |