#include <Sensor.h>
|
| virtual void | begin (void)=0 |
| | Initializes the sensors used by this object. Not needed if only using simulated sensor values.
|
| |
| virtual void | read (void)=0 |
| | Reads the sensor and updates the value stored within this object.
|
| |
| void | simulate (void) |
| | Simulates a new sensor value, storing the results in this object.
|
| |
| const sensorVal_t | value (void) const |
| | Returns the sensor value.
|
| |
◆ sensorVal_t
Type definition used by Sensor class.
◆ Sensor()
Protected constructor for Sensor.
- Parameters
-
| [in] | initialValue | Initial simulation value |
| [in] | maxVal | Max simulated value |
| [in] | minVal | Min simulated value |
| [in] | simDelta | Change in value for each simulation step |
◆ ~Sensor()
◆ begin()
| virtual void Sensor::begin |
( |
void | | ) |
|
|
pure virtual |
◆ read()
| virtual void Sensor::read |
( |
void | | ) |
|
|
pure virtual |
◆ simulate()
| void Sensor::simulate |
( |
void | | ) |
|
Simulates a new sensor value, storing the results in this object.
◆ value()
Returns the sensor value.
- Parameters
- None.
◆ _value
Most recent sensor reading.
The documentation for this class was generated from the following files:
- C:/Users/david/Documents/PlatformIO/Solo_Controller/Solo_Controller_Repo/src/Sensor.h
- C:/Users/david/Documents/PlatformIO/Solo_Controller/Solo_Controller_Repo/src/Sensor.cpp