The implementation of IInput.
More...
#include <PotentiometerInput.h>
The implementation of IInput.
◆ PotentiometerInput()
| PotentiometerInput::PotentiometerInput |
( |
IHAL & | hal, |
|
|
int | pin ) |
Configures a pin as a potentiometer input.
- Parameters
-
| hal | A reference to the hardware abstraction layer. |
| pin | The pin number. |
◆ getValue()
| float PotentiometerInput::getValue |
( |
| ) |
|
|
overridevirtual |
Samples this input.
- Returns
- The floating-point value of this input, normalized to the range [0, 1].
Implements IInput.
◆ m_hal
| IHAL& PotentiometerInput::m_hal |
|
private |
◆ m_pin
| int PotentiometerInput::m_pin |
|
private |
The documentation for this class was generated from the following files: