SparkMaxLimitSwitch
- class rev.SparkMaxLimitSwitch
Bases:
pybind11_object
- Deprecated:
Use SparkLimitSwitch instead
- class Type(value: int)
Bases:
pybind11_object
Represents whether the circuit is open or closed when the switch is not being pressed
- Deprecated:
Use SparkLimitSwitch::Type instead
Members:
kNormallyOpen
kNormallyClosed
- kNormallyClosed = <Type.kNormallyClosed: 1>
- kNormallyOpen = <Type.kNormallyOpen: 0>
- property name
- property value
- enableLimitSwitch(enable: bool) rev._rev.REVLibError
Enables or disables controller shutdown based on limit switch.
- get() bool
Get the state of the limit switch, whether or not it is enabled (limiting the rotation of the motor).
- isLimitSwitchEnabled() bool
Returns true if limit switch is enabled.