ArduPilot / ardupilot

ArduPlane, ArduCopter, ArduRover, ArduSub source
http://ardupilot.org/
GNU General Public License v3.0
11.08k stars 17.64k forks source link

RangeFinder: LidarLightV3HP I2C update rate slow? #9504

Open rmackay9 opened 6 years ago

rmackay9 commented 6 years ago

This is slightly anecdotal but while testing a LidarLightV3 I have noticed that the range shown in the Ground Station, although accurate, seems to update very slowly as compared to the LidarLightV2.

I performed back-to-back tests. The VCC, GND, SDA and SCL lines were connected directly to the Pixhawk's I2C port similar to what is shown here on the wiki. A wiring diagram is also shown below although in my case I did not use a BEC. Still, I suspect skipping the BEC is not the cause of the slow updates.

lidarlitev3-pixhawk

rmackay9 commented 6 years ago

This PR may fix the problem: https://github.com/ArduPilot/ardupilot/pull/9169

muramura commented 6 years ago

I think that the delay time is not used. In order to use the delay time, I think that it is necessary to set bit 5 of register 4 to 1. I think that it is now 10 Hz.

There is no register 45 in HP.

fff

eee