Hi,
I am fighting with the offset calibration of multiple VL53L1X.
I use the API ULD.
I build a device to have 4 sensor[4] at 140mm far from a same plan. 2 of them give a good measure, 2 of them do not.
I have tried the following process to calibrate for each sensor[4] ({xx,xx,xx,xx} are the value during the debug):
sensor[i].GetDistanceInMm(&distance[i]); // distances are {115, 142, 143, 118}
uint16_t OffSetToF;
sensor[i].GetOffsetInMm(&OffSetToF); // returned values are {0, 0, 0, 0}
sensor[i].CalibrateOffset(140, &OffSetToF); //returned values are {26, 65533, 65532, 23}
sensor[i].SetOffsetInMm(OffSetToF); //with previous values {26, 65533, 65532, 23}
sensor[i].GetDistanceInMm(&distance[i]); // distances still are{115, 142, 143, 118}
Whatever the API (ST Ultra Light Driver or native ST_API), is the GetDistanceInMm function supposed to give the measure corrected of the offset value ? or am I supposed to make the correction in my program ??
Regards,
Olivier