mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-07-01 02:41:48 +00:00
Reflowed comments and removed commented out code (#735)
This commit is contained in:
committed by
Peter Johnson
parent
1e8d18b328
commit
c663d7cd16
@@ -31,19 +31,25 @@ class MotorSafetyHelper : public ErrorBase {
|
||||
static void CheckMotors();
|
||||
|
||||
private:
|
||||
// the expiration time for this object
|
||||
// The expiration time for this object
|
||||
double m_expiration;
|
||||
// true if motor safety is enabled for this motor
|
||||
|
||||
// True if motor safety is enabled for this motor
|
||||
bool m_enabled;
|
||||
// the FPGA clock value when this motor has expired
|
||||
|
||||
// The FPGA clock value when this motor has expired
|
||||
double m_stopTime;
|
||||
// protect accesses to the state for this object
|
||||
|
||||
// Protect accesses to the state for this object
|
||||
mutable wpi::mutex m_syncMutex;
|
||||
// the object that is using the helper
|
||||
|
||||
// The object that is using the helper
|
||||
MotorSafety* m_safeObject;
|
||||
|
||||
// List of all existing MotorSafetyHelper objects.
|
||||
static std::set<MotorSafetyHelper*> m_helperList;
|
||||
// protect accesses to the list of helpers
|
||||
|
||||
// Protect accesses to the list of helpers
|
||||
static wpi::mutex m_listMutex;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user