I bought an ATK-PMW3901 module and want to achieve indoor positioning. However, during testing today, the vl53l1x built-in in the module was connected to the I2C interface of pixhawk2.4.8, and the GPS module was unplugged(the SPI interface was not connected to PMW3901 because the wire I purchased had not yet arrived). At the same time, the settings shown in the following figure were made in QGC.
However, distance information is not displayed in the Mavlink Inspector, and the following issues were found when executing instructions in the Mavlink Console.
I have modified the~/PX4 Autopilot/boards/px4/fmu v3/default. cmake file and recompiled and burned it.
May I ask if there is a problem with my settings and if I need to turn off GPS. I hope to receive your help. Thanks.
I have scanned all I2C buses, but since the I2C expansion board I purchased has not yet arrived, I can only insert one device at a time. When inserting GPS with a magnetometer, the scanning results are as follows:
When inserting vl53l1x, the scanning results are as follows:
So I think there may be some issues with my vl53l1x sensor, or there may be a problem with the circuit, and I will check it.
If you have any other ideas, I hope you can provide them to me. Thank you for your help.
I think there may be some issues with my vl53l1x sensor
Yes, definitely it doesn’t communicate with the flight controller and this is basic I2C communication (it doesn’t have to do anything with drivers or other software that is needed).
This is the first thing to solve, later you will maybe have an issue with the drivers, but first, take care of this.