First post here. I’m a little stuck. I’m running a Pixhawk 2.1 with Copter 3.5.5.
I’m trying to get precision landing to work with the IR-LOCK Marc One Beacon. The rangefinder I am using is Lightware’s LW20/B. Here’s the issue: I’m unable to get a “sonarrange” value (other than zero) via MavLink.
I am connecting via I2C. I haven’t changed the default hexadecimal address of 0x66 (102 decimal). I thought for sure it was the rangefinder not sending any data (or using the wrong protocol). However, I connected the rangefinder to my PC via a Devantech USB to I2C adapter. When I brought up the Lightware terminal on my PC I was able to connect with the rangefinder and get accurate distance measurements. I was also able to do a few other commands, everything seemed to work alright.
When I hook the rangefinder up to my pixhawk via the I2C port, I don’t seem to be getting anything.
I have changed several parameters as follows:
- RNGFND_TYPE = 7 (LightWareI2C)
- RNGFND_ADDR = 102
- RNGFND_SCALING = 1
- RNGFND_MIN_CM = 5
- RNGFND_MAX_CM = 2500
- RNGFND_GNDCLEAR = 6
Any help would be greatly appreciated! Thank you so much