#include <CANDigitalInput.h>
Inherited by rev::SparkMaxLimitSwitch.
◆ LimitSwitchPolarity
◆ ~CANDigitalInput()
virtual rev::CANDigitalInput::~CANDigitalInput |
( |
| ) |
|
|
inlinevirtual |
◆ Get()
virtual bool rev::CANDigitalInput::Get |
( |
| ) |
const |
|
pure virtual |
Returns true if the limit switch is pressed, based on the selected switch type.
This method works even if the limit switch is not enabled.
- Returns
- true if the limit switch is pressed
Implemented in rev::SparkMaxLimitSwitch.
◆ EnableLimitSwitch()
virtual REVLibError rev::CANDigitalInput::EnableLimitSwitch |
( |
bool |
enable | ) |
|
|
pure virtual |
Enables or disables motor shutdown based on limit switch state. This does not affect the result of the Get() function.
- Returns
- REVLib
Implemented in rev::SparkMaxLimitSwitch.
◆ IsLimitSwitchEnabled()
virtual bool rev::CANDigitalInput::IsLimitSwitchEnabled |
( |
| ) |
const |
|
pure virtual |
◆ SparkMaxLimitSwitch
The documentation for this class was generated from the following file: