29#ifndef FRC_REVLIB_SRC_MAIN_NATIVE_INCLUDE_REV_SIM_SPARKSIMFAULTMANAGER_H_
30#define FRC_REVLIB_SRC_MAIN_NATIVE_INCLUDE_REV_SIM_SPARKSIMFAULTMANAGER_H_
34#include <frc/simulation/SimDeviceSim.h>
35#include <hal/SimDevice.h>
54 void SetupSimDevice();
56 hal::SimBoolean m_otherFault;
57 hal::SimBoolean m_motorTypeFault;
58 hal::SimBoolean m_sensorFault;
59 hal::SimBoolean m_canFault;
60 hal::SimBoolean m_temperatureFault;
61 hal::SimBoolean m_drvFault;
62 hal::SimBoolean m_escEepromFault;
63 hal::SimBoolean m_firmwareFault;
64 hal::SimBoolean m_brownoutWarning;
65 hal::SimBoolean m_overCurrentWarning;
66 hal::SimBoolean m_escEepromWarning;
67 hal::SimBoolean m_extEepromWarning;
68 hal::SimBoolean m_sensorWarning;
69 hal::SimBoolean m_stallWarning;
70 hal::SimBoolean m_hasResetWarning;
71 hal::SimBoolean m_otherWarning;
72 hal::SimBoolean m_otherStickyFault;
73 hal::SimBoolean m_motorTypeStickyFault;
74 hal::SimBoolean m_sensorStickyFault;
75 hal::SimBoolean m_canStickyFault;
76 hal::SimBoolean m_temperatureStickyFault;
77 hal::SimBoolean m_drvStickyFault;
78 hal::SimBoolean m_escEepromStickyFault;
79 hal::SimBoolean m_firmwareStickyFault;
80 hal::SimBoolean m_brownoutStickyWarning;
81 hal::SimBoolean m_overCurrentStickyWarning;
82 hal::SimBoolean m_escEepromStickyWarning;
83 hal::SimBoolean m_extEepromStickyWarning;
84 hal::SimBoolean m_sensorStickyWarning;
85 hal::SimBoolean m_stallStickyWarning;
86 hal::SimBoolean m_hasResetStickyWarning;
87 hal::SimBoolean m_otherStickyWarning;
90 const char* simDeviceName;
Definition: SparkBase.h:57
Definition: SparkFlex.h:37
Definition: SparkMax.h:37
Definition: SparkSimFaultManager.h:43
void SetStickyWarnings(const SparkBase::Warnings &warnings)
Definition: SparkSimFaultManager.cpp:128
void SetFaults(const SparkBase::Faults &faults)
Definition: SparkSimFaultManager.cpp:95
void SetStickyFaults(const SparkBase::Faults &faults)
Definition: SparkSimFaultManager.cpp:106
SparkSimFaultManager(SparkMax *motor)
Definition: SparkSimFaultManager.cpp:35
void SetWarnings(const SparkBase::Warnings &warnings)
Definition: SparkSimFaultManager.cpp:117
Definition: SparkLowLevel.cpp:40
Definition: SparkBase.h:78
Definition: SparkBase.h:102