-
Notifications
You must be signed in to change notification settings - Fork 17.9k
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
Strange new BUG with landing in Plane master build. #9993
Comments
In this picture you can see what happens if you run the exact same mission, without disconnecting the plane. That is in Simulator. right after it lands. Just press restart mission and arm (if needed). |
yup, noticed that too the other day, but thought i messed something up... don't know if this is related, but i noticed NAV_LAND's param4 field (desired yaw angle) is forced to 1 during waypoint handling, which is not exactly self-explanatory on fixed wing: https://github.com/vierfuffzig/Chibios-miscellaneous/blob/master/SITL_Plane_2landings.BIN |
thanks, I've reproduced it in SITL |
yeah, I suspect it's @WickedShell 's recent change too. I'll ping him |
This is not from the recent quadplane landing stuff I've been doing. I had to use @pompecukor's mission to get it to break. Git bisect shows it broke in: 4f9c492 (AP_Landing: yaw correction on landing) |
I've reverted the AP_Landing change that causes this issue |
Looking into this, the problem might be outside of the landing code, but was revealed by the changes. |
This reverts commit 4f9c492. That commit was causing the landing issue here: ArduPilot#9993 reverting until we find the correct fix
Bug report
Issue details
Something fishy going on in the latest arduplane master. Very easy to reproduce in Mission Planner SITL, however I first noticed it in real flight with 2 separate units that are running the latest master.
In short the problem is that on any mission with auto landing. Once the plane passes the last waypoint, before the land point. It rolls right and does a semi loiter, then rolls back left and heads for the landing point and lands.
This is very easy to reproduce, all you need is any random mission, I am including one for your convince set at a random location. As you can see WP4 is a waypoint, then WP5 is tha land point. Once the plane passes WP4 it goes right and then left.
Just run on Mission planner simulator. Select Fixed wind plane and run the mission. You will get the same result. I have tried it 5 times with different mission. As mention it happens in real life too. So not MP issue.
NOTE: Another strange thing is that it will only happen the first the first time you run a mission. If you restart same mission with the same plane it will not happen the second time. You need to disconnect and start simulator again for it to happen again.
Version
Latest Arduplane master build.
Platform
[ ] All
[ ] AntennaTracker
[ ] Copter
[X] Plane
[ ] Rover
[ ] Submarine
Airframe type
Any fixed wing, including simulator
Hardware type
Irrelevant. happend on Sim too.
Logs
As it can be reproduced in sim anyone, no need for dataflash logs.
master land issue.zip
The text was updated successfully, but these errors were encountered: