-
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
MAV_CMD_NAV_VTOL_TAKEOFF: Heading not considered #12660
Comments
This issue has been automatically marked as stale because it has not had recent activity. Thank you for your contributions. |
This looks very relevant. Was it fixed as part of #12630? |
This issue has been automatically marked as stale because it has not had recent activity. Thank you for your contributions. |
@sfuhrer Any update on this? On master this issue still persists. |
Yes still persists, though not something I consider too high on my priorities currently. |
I'd say so yes! You mean now disabling the "set heading" option in QGC, or to enable the heading set there to be consumed by PX4? For the 2nd option some changes in Navigator would be necessary, around here: |
@mrpollo I recall you were putting together a team of community members who could help with development. This might be something for someone in the team to consider. |
I am only interested to have the yaw aligned to the next waypoint correctly, without any artificial waypoints before the transition. I achieved good results by setting the mission_item yaw to 0.0f in https://github.com/PX4/Firmware/blob/18754225c93ee18c76c227cc66f687835e4a0046/src/modules/navigator/mission.cpp#L770 and looking currently why it doesn't work with the calculated heading. Update:
INFO [navigator] Lat: 53.54490, long: 10.00780 -> Lat: 53.54490, long: 10.00780 The yaw calculation should take the next waypoint into consideration, shouldn't it? |
@dayjaby it will do the transition into direction of the VTOL_TAKEOFF wp, so if you place it right above your takeoff point then you probably will have some quite random transition direction. The logic unfortunately currently isn't smart enough to chose the first wp after VTOL_TAKEOFF for the direction if the the distance to the VTOL_TAKEOFF is to short. |
This issue has been automatically marked as stale because it has not had recent activity. Thank you for your contributions. |
This still a problem @sfuhrer ? |
I think it would be rather a "nice to have" than a problem - unless you want to point out that we're not fully mavlink-spec compatible as we don't listen to the VTOL_TRANSITION_HEADING param of MAV_CMD_NAV_VTOL_TAKEOFF, but always do it in direction of the next waypoint. The current behavior is okay for me atm (I want to keep it as simple as possible for the user), and I thus have not a big intention to work on anything else. |
Hi @sfuhrer
If you're not going to fix, add wontfix and close :-) Then review PX4/PX4-user_guide#747 which captures this :-) |
This issue has been automatically marked as stale because it has not had recent activity. Thank you for your contributions. |
@hamishwillee (and @sfuhrer) please do not close this ticket, since I personally see two problems here.
Although the second problem is debatable whether it should or shouldn't send information back that is not used, it is breaking the Mavlink specifications! In particular in QGC it isn't even detected that it is ignored, since QGC does not execute a validation check after upload. |
Describe the bug
The MAV_CMD_NAV_VTOL_TAKEOFF message has a field the specifies the heading of the transition:
As far as I can say, this heading setpoint is currently not considered during the transition on the firmware side.
It would also be nice to improve the UX in QGC about the transition direction (e.g. be able to select 'Heading from home to VTOL_TAKEOFF waypoint'). I will create an issue there as well.
To Reproduce
Plan a mission in QGC with a VTOL_takeoff. Set heading of this waypoint to some value (not sure though if this actually sets the correct field in the MAV_CMD_NAV_VTOL_TAKEOFF)
Expected behavior
I would expect that after the vehicle has reached transition altitude, it waits with the transition till the heading specified is reached before starting the transition. It should then fly in fixed-wing to the VTOL_TAKEOFF waypoint.
The text was updated successfully, but these errors were encountered: