#include <SparkMaxLimitSwitch.h>
Inherits rev::CANDigitalInput.
Inherited by rev::SparkLimitSwitch.
◆ Type
Represents whether the circuit is open or closed when the switch is not being pressed
- Deprecated:
- Use SparkLimitSwitch::Type instead
Enumerator |
---|
kNormallyOpen | |
kNormallyClosed | |
◆ SparkMaxLimitSwitch() [1/2]
◆ SparkMaxLimitSwitch() [2/2]
◆ ~SparkMaxLimitSwitch()
rev::SparkMaxLimitSwitch::~SparkMaxLimitSwitch |
( |
| ) |
|
|
overridedefault |
◆ operator=()
◆ Get()
bool SparkMaxLimitSwitch::Get |
( |
| ) |
const |
|
overridevirtual |
Get the state of the limit switch, whether or not it is enabled (limiting the rotation of the motor).
Implements rev::CANDigitalInput.
◆ EnableLimitSwitch()
REVLibError SparkMaxLimitSwitch::EnableLimitSwitch |
( |
bool |
enable | ) |
|
|
overridevirtual |
◆ IsLimitSwitchEnabled()
bool SparkMaxLimitSwitch::IsLimitSwitchEnabled |
( |
| ) |
const |
|
overridevirtual |
◆ CANSparkBase
◆ SparkLimitSwitch
The documentation for this class was generated from the following files: