ArduPilot / ArduPilot/ardupilot

Copter: automatic landing gear retraction dont work with lidar connected

Open
#16,403 5 comments 0 reactions 0 assignees View on GitHub
Copter
Dominant language
C++
Stars
15.9k
Forks
21.4k
Avg merge
3d 17h
Merged PRs (30d)
119

Description

## Bug report

**Issue details**

LGR retract alt = 40m, deploy 35m
maximum lidar height is set to 35m
when lidar is connected and providing data to cube, the LGR never retracts as it should. (it only retracts if i do set retract alt below Lidar maximum height. But again above this height, it deploys again, when it should be retracted) (my conclusions are confirmed with RC10_out logs where it is connected)
The moment i manually disconnect i2c connector from lidar (no change in parameters) the LGR retracts and deploys as it should perfectly.
ALT_source is set to baro, the lidar is used for IR-lock only in my case.

**Version**
AC 4.0.6-RC1, AC 4.0.5

**Platform**
[ ] All
[ ] AntennaTracker
[ x] Copter
[ ] Plane
[ ] Rover
[ ] Submarine

**Airframe type**
Quadrotor

**Hardware type**
Cube orange, Lidar lite V3

**Logs**
https://drive.google.com/file/d/1Rzi6VIqKeA4HcXWOo5Nl-IsVXJ4mbO8g/view?usp=sharing

Contributor guide

Open the contributing guide

Research direction

No source file, test, or entry point is named. Start by reviewing the linked logs and the RC10_out observations, then trace Copter landing-gear behavior with Lidar Lite V3 data connected; done means the gear retracts at 40 m and deploys at 35 m while the lidar remains connected.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
embedded-iot, robotics
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
32/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.