I'm currently trying the examples to display the target distance from the phone, using getDistanceToTarget() api. The distance I need to measure are very close, about 10-20 cm.
In the update callback I call getDistanceToTarget(), wich is supposed to return the distance from target in millimeters.
- first problem: the return value when my target is at 10 cm is 1120, what is the unit of this value ?
- second problem: if I suppose this value unit is 10 * mm (so I get 112 mm), the returned distance is wrong.
- third problem: The previous measures have been done with a samsung S5. If I do the same measures on a Huawei P7, The returned distance is 1340.. which is even more wrong.
Is there something I can do to improve this ?