Thunderbots Project
Loading...
Searching...
No Matches
MotorService::MotorFaultIndicator Struct Reference

#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
 

Detailed Description

Holds motor fault information for a particular motor and whether any fault has caused the motor to be disabled.

Constructor & Destructor Documentation

◆ MotorFaultIndicator() [1/2]

MotorFaultIndicator ( )
inline

Construct a default indicator of no faults and running motors.

◆ MotorFaultIndicator() [2/2]

MotorFaultIndicator ( bool  drive_enabled,
std::unordered_set< TbotsProto::MotorFault > &  motor_faults 
)
inline

Construct an indicator with faults and whether the motor is enabled.

Parameters
drive_enabledtrue if the motor is enabled, false if disabled due to a motor fault
motor_faultsa set of faults associated with this motor

The documentation for this struct was generated from the following file: