I compare the datasheets, and the i2c-interface is still different from VL53L0X.
So i miss an other Parameter for RNGFND_TYPE = 16 especial for VL53L1X
In this Moment i have tested the VL53L1X with the pimoroni-tool.
It works nearly properly.
The graph.py give me not the expected range from 360 cm but 210 cm.
Possible i should use more voltage?
I have a source-setup for Cube Black.
But i use now the Pixhawk 2.4.8.
I have no idea, how to switch from the “Cube Black” and to 2.4.8.
Can you back me in this point?
I have to chose the CPU-Type - i have no idea.
I have to make a new configure like this:
If success, then you can try modifying the source code as suggested by @ppoirier, then rebuild and check if you can read VL53L1X or not. If you can read it after modifying the check ID, please open an issue.
I’m in vacation at the moment so I will check the library again in next Monday. ST has released new library for VL53L1X, and the library I wrote was from last year, so I may need if there is new variant.
I have quick checked the pimoroni/vl53l1x-python, they don’t check the module ID, value 0xAA is just copied from other libraries and not verified in code. On the other hand, I checked the latest ST datasheet, reference registers value aren’t changed.
I am not shure, at this point.
May be, there is only a difference between the latest Firmware from the Mission Planner (3.8) or so?
Because i change back the modification (81-84) and the range-finder works also, but if i change back to the latest Mission Planner Firmware the RangeFinder will does not work.
I’m confused to write wrong things, because my experience is week.
Hello @smilie
Latest Firmware from MP are Copter-3.6 and Plane 3.9, which have not supported VL53L1X yet, I checked and saw VL53L1X driver only in master branch. So you may try the master branch or beta firmware if you want to use VL53L1X, and wait for next main release I guess.