For anyone using a LiDAR Lite v3 with the Pixhawk flight controllers and using the firmware version 1.14 or 1.15, the drivers are not present with them, so the LiDAR won’t work either with I2C or PWM. I figured this out after days of troubleshooting.
How I got it to work was I reset the firmware back to v1.13, which with absolutely no changes, the LiDAR works. Once connected and working, I used QGC to update the firmware back to v1.15. However, this brings about the error “crash dumps present on sd px4”, which prevents arming.
How I then got around this was by changing the parameter “COM_ARM_HFLT_CHK” to disabled, allowing me to arm.
I have not tried using cmake to create the firmware v1.15 myself, making sure the driver is present under “src/drivers/distance_sensor/ll40ls” and “/ll40ls_pwm” folder, if anyone wants to give that a try and upload the resulting firmware here would be great.
If anyone else has anything to add to this topic please do, to better enlight anyone attempting something similar.