![]() |
Doly C++ SDK v1.00
|
Functions | |
| int8_t | init (int8_t offset_left=0, int8_t offset_right=0) |
| Initialize ToF sensors. | |
| int8_t | dispose () |
| Dispose/stop the ToF subsystem and release resources. | |
| int8_t | setup_continuous (uint16_t interval_ms=50, uint8_t distance=0) |
| Configure continuous reading for gesture detection and threshold events. | |
| std::vector< TofData > | getSensorsData () |
| Read both sensors once and return the latest values. | |
| bool | isActive () |
| Check whether the ToF subsystem is active (initialized). | |
| bool | isReading () |
| Check whether the subsystem is currently performing frequent/continuous readings. | |
| float | getVersion () |
| Get current library version. | |
| int8_t TofControl::dispose | ( | ) |
Dispose/stop the ToF subsystem and release resources.
| std::vector< TofData > TofControl::getSensorsData | ( | ) |
Read both sensors once and return the latest values.
Continuous setup is not required for single reads.
| float TofControl::getVersion | ( | ) |
Get current library version.
Original note: format 0.XYZ (3 digits after major).
| int8_t TofControl::init | ( | int8_t | offset_left = 0, |
| int8_t | offset_right = 0 ) |
Initialize ToF sensors.
| offset_left | Offset to apply to left sensor readings. |
| offset_right | Offset to apply to right sensor readings. |
| bool TofControl::isActive | ( | ) |
Check whether the ToF subsystem is active (initialized).
| bool TofControl::isReading | ( | ) |
Check whether the subsystem is currently performing frequent/continuous readings.
| int8_t TofControl::setup_continuous | ( | uint16_t | interval_ms = 50, |
| uint8_t | distance = 0 ) |
Configure continuous reading for gesture detection and threshold events.
| interval_ms | Read interval in milliseconds (max = 2550 ms). Use 0 to stop continuous reading. |
| distance | Proximity threshold distance in millimeters:
|