-
Notifications
You must be signed in to change notification settings - Fork 13.6k
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
Flyaway after loiter to altitude #21327
Comments
It actually changes WPs here, but is flying at wrong position in a line, when it should be loitering. Edit: Edit 2: |
Thanks @Jaeyoung-Lim, this does indeed seem relevant. |
I have not been able to reproduce this in 1.13.2, so I believe some change after this is the cause, but I can not be 100 % sure. |
Using bisect, I have found the commit/PR that first causes this behavior: I have not studied it in details, but I suspect that there is some other older code that is the actual error, and this just stopped hiding the problem. |
There might be something with this function: PX4-Autopilot/src/modules/fw_path_navigation/FixedwingPositionControl.cpp Lines 2821 to 2856 in 0afda91
Line 2843 seems strange to me, as it should intuitive be a positive dot product that indicates that vehicle is in front of A. Am I missing something? However, just flipping just makes the drone circle around a point on the line between A and B. Using loiter radius instead of FLT_EPSILON on 2831 does seem to work, but I guess that is mostly for this special case, and not really the right way to do it. |
This issue has been mentioned on Discussion Forum for PX4, Pixhawk, QGroundControl, MAVSDK, MAVLink. There might be relevant details there: https://discuss.px4.io/t/px4-maintainers-call-may-23-2023/32245/1 |
Thanks for the report @kibidev , sadly I only saw it now. I was able to reproduce and now look for a solution with the hints you already posted. |
Describe the bug
While flying a VTOL mission in simulator with WPs with large altitude difference close together (to provoke loiter to altitude), I experienced that the drone after completing loiter to altitude (WP 4) selected the WP after the next (WP 6, but currently unsure if WP 5 was briefly selected in between) but continued straight east, but adjusting the altitude to that given in WP 5.
To Reproduce
I have not been able to reproduce yet, but the steps I did when got the error is given below.
Steps to reproduce the behavior:
make px4_sitl gazebo_standard_vtol
Expected behavior
The drone should have gone to WP 5 and loitered to corrected altitude after WP 4.
Log Files and Screenshots
https://logs.px4.io/plot_app?log=d5fb6ec1-4393-406c-904d-77450f2c6b4f
Drone (please complete the following information):
Additional context
Used latest main branch version:
0ae296bfe21add6276f5c28a97884059fb317999
Build/run in px4io/px4-dev-simulation-focal docker image.
After the screenshot was taken, I selected WP 6 and continued mission from there. No unexpected behavior after this.
The text was updated successfully, but these errors were encountered: