![]() |
OpenSourceSimWheelESP32
Open-source wireless steering wheel/button box for ESP32 boards
|
Fake analog input for testing. More...
#include <InputHardware.hpp>
Public Member Functions | |
| FakeAxis (FakeInput *instance, bool leftOrRight) | |
| Construct a new Fake Digital 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) |
| Read current axis position. The axis must go from one end to the other for auto- calibration. | |
Public Member Functions inherited from AnalogInput | |
Fake analog input for testing.
Definition at line 554 of file InputHardware.hpp.
|
inline |
Construct a new Fake Digital Input object.
| instance | Fake input specification |
| leftOrRight | True for the left axis, false for the right axis |
Definition at line 568 of file InputHardware.hpp.
|
inlineoverridevirtual |
Get auto-calibration data. Required for persistent storage.
| [out] | minReading | Minimum adc reading |
| [out] | maxReading | Maximum adc reading |
Implements AnalogInput.
Definition at line 579 of file InputHardware.hpp.
|
inlinevirtual |
Read current axis position. The axis must go from one end to the other for auto- calibration.
| [out] | value | Current axis position. |
| [out] | autoCalibrated | True if this axis has been auto-calibrated. |
Implements AnalogInput.
Definition at line 587 of file InputHardware.hpp.
|
inlineoverridevirtual |
|
inlineoverridevirtual |
Set auto-calibration data (loaded from persistent storage).
| [out] | minReading | Minimum adc reading |
| [out] | maxReading | Maximum adc reading |
Implements AnalogInput.
Definition at line 585 of file InputHardware.hpp.