ArduPilot / ardupilot

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

RangeFinder: set LeddarOne config in driver #7939

Open rmackay9 opened 6 years ago

rmackay9 commented 6 years ago

The LeddarOne range finder driver leaves the sensor's settings at their default values which is not ideal.

In particular we should increase the update rate to 60hz by setting the following registers on each power-up: Addr: 0 (Exponent for #accumulations) -> Value: 5 Addr: 1 (Exponent for #oversamplings) -> Value: 1 Addr: 5 (Power % of light source) ->Value: 100 Addr: 10 (Continues measure) -> Value 1

The LeddarOne driver is here in ArduPilot.

Here's a picture of the LeddarOne configuration screen in case this is useful: leddarvu8_config

muramura commented 6 years ago

Leddarone User Guide https://www.robotshop.com/media/files/pdf2/rb-led-02-04_-_54a0025-2_leddar_one_user_guide_-_2016-09-01.pdf thiis 24 page picture

2018-03-19 5 58 47

I think Addr 5 is 4. Addr 10 is undefined. Where is this address written?