ArduPilot / ArduPilot/ardupilot

RangeFinder: set LeddarOne config in driver

Open
#7,939 1 comment 0 reactions 0 assignees View on GitHub
Enhancement Library
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:
![leddarvu8_config](https://user-images.githubusercontent.com/1498098/37504811-3e63afd6-2924-11e8-85a6-ca41bb275f6a.png)

Contributor guide

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.