Package com.revrobotics.sim
Class SparkSimFaultManager
java.lang.Object
com.revrobotics.sim.SparkSimFaultManager
-
Constructor Summary
ConstructorDescriptionSparkSimFaultManager
(SparkFlex motor) Create a Fault Manager object, which allows you to set the status of simulated faults on your simulated Spark Flex.SparkSimFaultManager
(SparkMax motor) Create a Fault Manager object, which allows you to get and set the status of simulated faults on your simulated Spark MAX. -
Method Summary
Modifier and TypeMethodDescriptionvoid
setFaults
(SparkBase.Faults faults) Set the state of the simulated faults of the device.void
setStickyFaults
(SparkBase.Faults faults) Set the state of the simulated sticky faults of the device.void
setStickyWarnings
(SparkBase.Warnings warnings) Set the state of the simulated sticky warnings of the device.void
setWarnings
(SparkBase.Warnings warnings) Set the state of the simulated warnings of the device.
-
Constructor Details
-
SparkSimFaultManager
Create a Fault Manager object, which allows you to get and set the status of simulated faults on your simulated Spark MAX. Constructing this object will also cause the Fault Manager to appear in the sim gui. The state of faults can be fetched on the original Spark Object.- Parameters:
motor
- The CANSparkMax associated with the Fault Manager
-
SparkSimFaultManager
Create a Fault Manager object, which allows you to set the status of simulated faults on your simulated Spark Flex. Constructing this object will also cause the Fault Manager to appear in the sim gui. The state of faults can be fetched on the original Spark Object.- Parameters:
motor
- The CANSparkMax associated with the Fault Manager
-
-
Method Details
-
setFaults
Set the state of the simulated faults of the device.Use device.getFaults() to get the object and modify the parameters.
- Parameters:
faults
- a Faults object indicating the state of the faults
-
setStickyFaults
Set the state of the simulated sticky faults of the device.Use device.getStickyFaults() to get the object and modify the parameters.
- Parameters:
faults
- a Faults object indicating the state of the sticky faults
-
setWarnings
Set the state of the simulated warnings of the device.Use device.getWarnings() to get the object and modify the parameters.
- Parameters:
warnings
- a Warnings object indicating the state of the warnings
-
setStickyWarnings
Set the state of the simulated sticky warnings of the device.Use device.getStickyWarnings() to get the object and modify the parameters.
- Parameters:
warnings
- a Warnings object indicating the state of the sticky warnings
-