ArduPilot / ArduPilot/ardupilot
RangeFinder: set LeddarOne config in driver
- Dominant language
- C++
- Stars
- 15.9k
- Forks
- 21.4k
- Avg merge
- 3d 17h
- Merged PRs (30d)
- 119
Description
The [LeddarOne range finder](http://ardupilot.org/copter/docs/common-leddar-one-lidar.html) 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](https://github.com/rmackay9/rmackay9-ardupilot/blob/master/libraries/AP_RangeFinder/AP_RangeFinder_LeddarOne.cpp).
Here's a picture of the LeddarOne configuration screen in case this is useful:

Contributor guide
Research direction
Open libraries/AP_RangeFinder/AP_RangeFinder_LeddarOne.cpp and trace the driver’s power-up path. Review how sensor settings are currently handled, then verify that the four specified LeddarOne registers are set on each power-up. Done means the sensor uses the requested values and reaches the intended 60 Hz update rate.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- embedded-iot, robotics
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 48/100