Struct SYN_Distance¶
Generic Distance Sensor Context.
#include <syn_distance.h>
Public Attributes¶
| Type | Name |
|---|---|
| SYN_GPIO_Pin | echo_pin |
| uint32_t | last_distance_mm |
| uint32_t | max_range_mm |
| uint32_t | min_range_mm |
| bool | obstacle_detected |
| uint32_t | proximity_thresh_mm |
| SYN_GPIO_Pin | trig_pin |
| SYN_DistanceType | type |
Public Attributes Documentation¶
variable echo_pin¶
variable last_distance_mm¶
Calculated distance in millimeters
variable max_range_mm¶
Max sensor range in mm
variable min_range_mm¶
Min sensor range in mm
variable obstacle_detected¶
True if object within proximity threshold
variable proximity_thresh_mm¶
Proximity alarm threshold in mm
variable trig_pin¶
variable type¶
The documentation for this class was generated from the following file src/syntropic/sensor/syn_distance.h