-
Notifications
You must be signed in to change notification settings - Fork 16.8k
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: LAND_ABORT_DEGT aborts should level off and detect exact land point alt offset #7052
Comments
Here is a more acute part of this issue that might be easier to correct until the above it taken under someones wings: https://discuss.ardupilot.org/t/autolanding-multiple-code-issues-condition-for-uav-landed/22768/5?u=pompecukor On normal lidar/rangefinder assisted landings, the lidar is engaged at a certain stage and is used for the landing instead of the barometric alt (correct? or is is just used for validation?). This issue is. if the landing is restarted based on parameter: LAND_ABORT_DEG As you can imagine, it the offset was made incorrectly. Then you have a guaranteed crash on the second landing even thought the lidar keeps giving correct altitude az 50Hz update or so. so long story show, on the long run this issue will of course solve this more or less, but for a more immediate solution I think if would be good to add a line to start to use the range finder again on the second approach and save a few people from unfortunate crashes. |
Rangefinder should always engage, doesn't matter if you had previously aborted or not. If it does not, then that's a new bug. |
It does not, I have checked multiple logs. If LAND_ABORT_DEG restarts the landing, then lidar is not used as I explained. I will go ahead and open issue. |
Correction to the above post. Lidar is used. However the AltO is offset and this offset is added to the lidar too with regards to landing. So the result is more or less the same. Even tought lidar says AGL is 10m off, if there was and offset on the AltO, then the AP will take the value as 10m+offset. |
The lidar is always treated as giving the most accurate altitude. The offset between what the lidar says vs what the baro says is applied to the baro after the abort so that this offset is already being applied and the slow is correct. The offset is therefor in theory zero on the next landing attempt. It's of course never zero especially as it's looking at terrain bumps but it should be only a few cm.. I still don't quite understand what you're talking about. Is there a problem? |
Do you know what AltO is? You can see that in the dataflash log. It seems to be some kind of ground zero offset. As I have shown here. If the lidar is used to abort and correct the landing. Then on the second approach then the altitude based on which the UAV does all its flares and so on is not directly the lidar alt (which is what it should be), but rather the lidar alt + the new ofset of AltO. Please look at this thread. I tried to demo as best as I could. You can clearly see what happens. All reactions from the plane are done as if the ground was 6m lower than it really was. Even though the lidar was working. It was supposed to flare at 4m, but as the ground got offset by 6m, it hit the ground before flaring.
https://discuss.ardupilot.org/t/autolanding-multiple-code-issues-condition-for-uav-landed/22768/9 |
Tom please let me know if it still does not make sense. Seem I am doing a terrible job at explaining. The issue is there trust me. Let us get to the bottom of this. It is very dangerous at current iteration. |
I see. You're talking about a different issue (#7205) which is confusing me |
My apologies. In my mind they are related a bit and both together work to generate the crashes. |
When LAND_DEG_ABORT triggers an abort, instead of pitching up right away it should level off and fly towards the NAV_LAND coords and detect the exact land point alt offset THEN pitch up and circle around. This ensures the rangefinder did not store an alt offset of a pit or tree on the approach.
Idea by user pompecukor on https://discuss.ardupilot.org/t/land-abort-deg-more-dangerous-than-not/21890
The text was updated successfully, but these errors were encountered: