2024-07-12 05:37 AM
Hi!
I am trying to use motion detection data from VL53L8CX sensor. Where can I find deeper explanation of results data and configuration structure than is it in datasheets.
RESULTS
struct
{
uint32_t global_indicator_1;
uint32_t global_indicator_2;
uint8_t status;
uint8_t nb_of_detected_aggregates;
uint8_t nb_of_aggregates;
uint8_t spare;
uint32_t motion[32];
} motion_indicator;
CONFIG
p_motion_config->ref_bin_offset = 13633;
p_motion_config->detection_threshold = 2883584;
p_motion_config->extra_noise_sigma = 7; //default 0
p_motion_config->null_den_clip_value = 0;
p_motion_config->mem_update_mode = 6;
p_motion_config->mem_update_choice = 2;
p_motion_config->sum_span = 4;
p_motion_config->feature_length = 9;
p_motion_config->nb_of_aggregates = 32; //default 16
p_motion_config->nb_of_temporal_accumulations = 32; //default 16
p_motion_config->min_nb_for_global_detection = 1;
p_motion_config->global_indicator_format_1 = 8;
p_motion_config->global_indicator_format_2 = 8; //default 0
p_motion_config->spare_1 = 0;
p_motion_config->spare_2 = 0;
p_motion_config->spare_3 = 0;
I am using 8X8 mode and, strangely, I get only 16 bytes of data in the uint32_t motion[32] array the rest are zeros. Also, what do values mean that there is motion in the corresponding 2 zones of an 8x8 grid.
How can I better use that data?
Thankyou for responding.