Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plane: Lidar/Rangefinder completly ignored on second approach when LAND_ABORT_DEG triggers landing restart #7205

Open
pompecukor opened this issue Nov 8, 2017 · 10 comments
Labels

Comments

@pompecukor
Copy link

pompecukor commented Nov 8, 2017

Issue details

When LAND_DEG_ABORT triggers an abort landing. On the second landing approach the lidar is completely ignored by the AP and only uses the new ground offset.
This is a major risk as many time just a tree or a pit gives the lidar the wrong value causing it to offset the ground level. Then on second approach it does not consider whatever the lidar report, just goes for new "virtual" ground level, like in Die Hard 2. This can and does end in hard crash into the ground, with plane skipping flare stage and all thinking that it is still airborne even tough it is long laying flat on the ground. Sometime even the props keep spinning.

Version

3.8.3 beta (started using lidar with 3.8 beta 05, the problem has be present from the start for me)

Platform

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

Airframe type

Fixed wing

Hardware type

Pixhawk2.1

Logs

https://www.dropbox.com/s/rkrpaeid95d7z9f/2017-11-05%2016-48-54.bin?dl=0

This is a major issue for me (has caused me multiple loss and damage) and took a long time to nail the what was really going wrong. Can I pay someone to fix this ASAP?
Ultimately sorting this (related issue out too would be very desired:https://github.com/ArduPilot/ardupilot/issues/7052#issuecomment-342759892

PS, the part of the code that controls manual landing abort/restart (your know.... with throttle to max), should also be verified if it has same bug. I never tested with that, but can imagine they would be using same subroutine to keep the code clean.

PS2: Here is some more post on this issue that let me to finding the culprit. Posted more similar logs there too https://discuss.ardupilot.org/t/autolanding-multiple-code-issues-condition-for-uav-landed/22768

@pompecukor pompecukor changed the title Plane: Lidar/Rangefinder completly ignored when LAND_DEG_ABORT triggers landing restart Plane: Lidar/Rangefinder completly ignored on second approach when LAND_DEG_ABORT triggers landing restart Nov 8, 2017
@magicrub
Copy link
Contributor

magicrub commented Nov 8, 2017

if this is true, then it's new behavior. Repeated aborted landings with a baro offset worked correctly in the past.

@pompecukor
Copy link
Author

pompecukor commented Nov 8, 2017

Did you look at the log? I have a few of them, not just one. Also sent you a video privately.
I have been getting the same problem since 3.8 beta 05 I think.

@pompecukor
Copy link
Author

pompecukor commented Nov 9, 2017

Short video explanation (this from the log posted just above, the end of it):
https://youtu.be/D41V59b9Ftg

@magicrub
Copy link
Contributor

I'm looking into it.

@pompecukor
Copy link
Author

Thank you sir. Really appreciated.

@magicrub
Copy link
Contributor

sorry, I seem to have been distracted for the last 1.3 years. I'll take a look at this again soon :)

@pompecukor
Copy link
Author

pompecukor commented Mar 14, 2019

/hug

@magicrub magicrub changed the title Plane: Lidar/Rangefinder completly ignored on second approach when LAND_DEG_ABORT triggers landing restart Plane: Lidar/Rangefinder completly ignored on second approach when LAND_ABORT_DEG triggers landing restart Apr 2, 2019
@magicrub
Copy link
Contributor

magicrub commented Apr 2, 2019

I think I found the problem, rangefinder is fine.. it's the mission that changed. Upon a rangefinder determining the slope is too steep, the rangefinder correction is stored here. Then later, we're flying around to repeat the landing and we're told the whole mission has moved up or down via that offset.

That is a changed behavior where before it was a baro offset, now it's a mission offset. However, this should not effect the ability for the rangefinder to work the second time but clearly the behavior has changed and I don't know why.

@magicrub
Copy link
Contributor

magicrub commented Apr 2, 2019

Hmm, looks like it was changed a long time ago! Here's where it changed.
4da3236

@pompecukor
Copy link
Author

"Changed" as in fixed? I haven't dared enable it since the issues over a year ago.

@IamPete1 IamPete1 added the Plane label Sep 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants