Class for analog clutch paddles.
More...
#include <InputHardware.hpp>
|
| | AnalogClutchInput (ADC_GPIO pinNumber) |
| | Construct a new Analog Clutch Input object.
|
| |
| void | resetCalibrationData () override |
| | Force auto-calibration.
|
| |
| void | getCalibrationData (int &minReading, int &maxReading) override |
| | Get auto-calibration data. Required for persistent storage.
|
| |
| void | setCalibrationData (int minReading, int maxReading) override |
| | Set auto-calibration data (loaded from persistent storage).
|
| |
| void | read (uint8_t &value, bool &autoCalibrated) override |
| | Read current axis position. The axis must go from one end to the other for auto- calibration.
|
| |
Class for analog clutch paddles.
Definition at line 492 of file InputHardware.hpp.
◆ AnalogClutchInput()
| AnalogClutchInput::AnalogClutchInput |
( |
ADC_GPIO | pinNumber | ) |
|
Construct a new Analog Clutch Input object.
- Parameters
-
| pinNumber | ADC-capable pin number |
◆ getCalibrationData()
| void AnalogClutchInput::getCalibrationData |
( |
int & | minReading, |
|
|
int & | maxReading ) |
|
overridevirtual |
Get auto-calibration data. Required for persistent storage.
- Parameters
-
| [out] | minReading | Minimum adc reading |
| [out] | maxReading | Maximum adc reading |
Implements AnalogInput.
◆ read()
| void AnalogClutchInput::read |
( |
uint8_t & | value, |
|
|
bool & | autoCalibrated ) |
|
overridevirtual |
Read current axis position. The axis must go from one end to the other for auto- calibration.
- Parameters
-
| [out] | value | Current axis position. |
| [out] | autoCalibrated | True if this axis has been auto-calibrated. |
Implements AnalogInput.
◆ resetCalibrationData()
| void AnalogClutchInput::resetCalibrationData |
( |
| ) |
|
|
overridevirtual |
◆ setCalibrationData()
| void AnalogClutchInput::setCalibrationData |
( |
int | minReading, |
|
|
int | maxReading ) |
|
overridevirtual |
Set auto-calibration data (loaded from persistent storage).
- Parameters
-
| [out] | minReading | Minimum adc reading |
| [out] | maxReading | Maximum adc reading |
Implements AnalogInput.
◆ lastADCReading
| int AnalogClutchInput::lastADCReading |
|
protected |
◆ lastValue
| uint8_t AnalogClutchInput::lastValue |
|
protected |
◆ maxADCReading
| int AnalogClutchInput::maxADCReading |
|
protected |
◆ minADCReading
| int AnalogClutchInput::minADCReading |
|
protected |
◆ pinNumber
The documentation for this class was generated from the following file: