VL53L1_SetThresholdConfig() API not working when setting up threshold in Vl53L1x sensor
Hi,
I am working on Vl53L1x sensor for designing Obstacle Detection sensor.
I want to set the distance threshold for obstacle detection in particular range only.
I have set threshold after following APIs:
status = VL53L1_DataInit(Dev);
status = VL53L1_StaticInit(Dev);
I have set following parameters:
Detectionconfig->DetectionMode = 1;
Detectionconfig->Distance.CrossMode = 3;
Detectionconfig->IntrNoTarget = 0;
Detectionconfig->Distance.High = 2000;
Detectionconfig->Distance.Low = 100;
status = VL53L1_SetThresholdConfig(Dev, Detectionconfig );As per above parameters sensor should report distance measurement to host only when there is any obstacle in range (10cm - 200cm) but this sensor is still reporting data of ceiling which is 3500cm away.
Could you help me in resolving this issue?
Along with this can you explain me IntrNoTarget parameter because as i got from manual that if this is set to 0 then sensor will not give ranging data is there is no target but after setting this to 0 sensor is still reporting ranging data with status 2 i.e, either there is no target or it is too far.
Please explain me the role of this parameter.
Regards
Akansha
