Calculate x,y,z coordinates of each points of the VL53L5CX
Hello,
I am trying to calculate the x,y,z coordinates of each points of the VL53L5CX sensor to determine the angle error between a surface and the plan of the sensor.
I have two problem with my system :
- the resulted error is not symmetrical with one rotation side or with the other,
- and the resulted error is very depending on the material I chose.
Here is a graphic of the mean angle error with 2 surfaces (wood and black metal) repeated with 3 differents VL53L5CX (I took 50 measures each 5° degrees).
So I am wondering if my calculation of the coordinates x,y,z of each points of the VL53L5CX is right, and if I didn't forget some details. I'm almost sure that the plan calculation is right.
So here is the way I calculated the coordinates:
The VL53LCX give us 16points, and the returned value of each distance is the adjacent side of the FoV as said in this page of the forum : https://community.st.com/t5/imaging-sensors/vl53l5cx-distances-don-t-match-theory-what-am-i-missing/td-p/82657.

We know that HFoV = 45° and we assume that MATRIX_LENGTH = 4 (for the following calculation).
To ease the calculation we convert the 16 points in i,j columns and raws.
The calculs is detailed here:
Do you agree with this coordinates calculation, or did I miss something ?
Thank you !
Clément.
