I am using Garmin Lidar lite v3 on my Pixhawk 2.4.8. I am getting no data from the range finder. I followed the wiki for the wiring. this what the way I set it up.
the lidar is powered by a separate UBEC with a 9 Volt battery connected to it. I can see that it is powered on.
the weird thing is when I connected the power the Lidar it gives me a single incorrect random reading then stops. If I disconnect the battery and reconnect it will give a different Singal incorrect random reading. Then OfCourse i see an error massage with PreArm: Rangefinder 1: No Data.
I think the wiring is correct otherwise it will give no reading at all.
these are the parameters I changed following the wiki
RNGFND1_TYPE type 5 (PMW)
RNGFND1_PIN = 54 (AUX5)
set BRD_BOOT_DELAY to 3000
RNGFND1_SCALING 1
SERVOx_FUNCTION_13 set to -1 as GPIO
RNGFND1_MAX_CM = 3500 (the maximum range the lidar can accurately report in cm)
RNGFND1_MIN_CM = 20
Because I am
using an airspeed sensor on the I2c port.
I could use an I2c splitter but I read in the wiki that using both airspeed sensor and lidar on i2c port creates an offset, so I decided to try the PMW method.
as telemetry use uart communication interchange tx and rx and give required power supply through splitter/bec/any other source.keep rngfnd settings same and use appropriate serial protocol and do check proximity 1 parameters too
I am getting no readings at all this time. The sensor has power, and the wiring is according to the wiki.
these are the parameters I changed
RNGFND1_TYPE = 3 “LidarLite-I2c”
RNGFND1_Pin to -1
in the massages tab it says PreArm: RNGFND1_PIN not set
The options to change the pin number is the following in mission planner ( -1 not used , 11 pixracer , 13 pixhawk ADC4 , 14 pixhawk ADC3 , 15 pixhawk ADC6/Pixhawk2 ADC, 50 AUX1, 51 AUX2 , 52 AUX3 53 AUX4 54 AUX5 55 AUX6 103 Pixhawk SBUS )
If I chose any of the selection, I get an error in massages tab
RNGFND1_PIN=15 invalid. ( or whatever number I use )