![]() |
Doly C++ SDK v1.00
|
Public API for Doly ToF (Time of Flight) sensor control. More...
Go to the source code of this file.
Namespaces | |
| namespace | TofControl |
Functions | |
| int8_t | TofControl::init (int8_t offset_left=0, int8_t offset_right=0) |
| Initialize ToF sensors. | |
| int8_t | TofControl::dispose () |
| Dispose/stop the ToF subsystem and release resources. | |
| int8_t | TofControl::setup_continuous (uint16_t interval_ms=50, uint8_t distance=0) |
| Configure continuous reading for gesture detection and threshold events. | |
| std::vector< TofData > | TofControl::getSensorsData () |
| Read both sensors once and return the latest values. | |
| bool | TofControl::isActive () |
| Check whether the ToF subsystem is active (initialized). | |
| bool | TofControl::isReading () |
| Check whether the subsystem is currently performing frequent/continuous readings. | |
| float | TofControl::getVersion () |
| Get current library version. | |
Public API for Doly ToF (Time of Flight) sensor control.
This API manages left/right ToF sensors, supports single-shot reads, and can run a continuous reading loop for gesture detection and proximity threshold notifications.
Design notes: