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

VTOL front transition fixes/enhancements in mission mode #12630

Merged
merged 3 commits into from
Aug 21, 2019

Conversation

sfuhrer
Copy link
Contributor

@sfuhrer sfuhrer commented Aug 5, 2019

This PR take up #12455 and #12626 (mission yawing timeout) and should improve the user experience/safety of VTOL forward transitions in mission mode. It only affects both VTOL_TAKEOFF and VTOL_TRANSITION commands.

Issues

  1. Before a VTOL_TRANSITION to fixed-wing, the heading needs to be aligned to the next waypoint, otherwise it won't start transitioning. This is a problem when weather vane (WV) is active, as then the heading is always aligned against the wind. Currently the transition thus does not happen with cross/tail wind.

  2. Mission yawing timeout in mission not working #12626 (mission yawing timeout)
    Even with WV disabled, when flying with high cross/tail winds, the aerodynamic passive yaw stability always yaws the VTOL into the wind. If this effect is bigger than the maximum yaw control authority, then yaw setpoints can't be followed. This can then be a problem if a transition is not planned against the wind. In this case, if the vehicle can't reach the transition heading, the mission should be aborted and RTL. The time the vehicle has max time to reach transition heading is set with MIS_YAW_TMT (a negative value disables this timeout). Currently this timeout does not work, so keeps trying indefinitely to reach the heading.

  3. The direction of the front transition at a VTOL_TAKEOFF waypoint (this waypoint is the one that per default gets selected for the first waypoint of a VTOL mission) is currently in an arbitrary direction with weather vane enabled (resp. the heading from takeoff is kept if weather vane is disabled).

Changes

  1. This PR disables the WV during a VTOL_TRANSITION (to fixed-wing) as soon as the transition altitude is reached and the aligning phase starts. WV stays enabled (if WV_EN params is set to 1) for all other hover flight phases.
  2. Fixed yawing timeout in navigator (timer was wrongly reset all the time).
  3. Set the heading of the front transition of a VTOL_TAKEOFF to this VTOL_TAKEOFF waypoint. This heading is then enforced, meaning that like with a normal VTOL_TRANSITION wp, it won't do the transition if the aligning times out (controlled with MIS_YAW_TMT).

Follow-up issues to solve

  • explain in QGC that for a VTOL_TAKEOFF, the direction of the transition is towards this waypoint and that it should be placed some distance from home and in the direction where one wants the transition to happen (it has to be accepted in FW mode and thus the vehicle will in worst case turn back to fly through it if it is too close to home)
  • give the user the possibility to set the direction of a VTOL_TAKEOFF to e.g. a fixed heading, or to discard any heading setpoint and just transition (e.g. into wind if WV is enabled). (see MAV_CMD_NAV_VTOL_TAKEOFF: Heading not considered #12660)

@sfuhrer sfuhrer added bug Hardware: pixycam2 PixyCam2 Hybrid VTOL 🛩️🚁 Multirotor + Fixedwing! and removed Hardware: pixycam2 PixyCam2 labels Aug 5, 2019
@sfuhrer sfuhrer self-assigned this Aug 5, 2019
@sfuhrer sfuhrer requested a review from RomanBapst August 5, 2019 17:03
@sfuhrer sfuhrer changed the title [WIP ] VTOL front transition improvements in mission [WIP ] VTOL front transition fixes in mission mode Aug 5, 2019
@sfuhrer sfuhrer changed the title [WIP ] VTOL front transition fixes in mission mode [WIP]: VTOL front transition fixes in mission mode Aug 6, 2019
@sfuhrer sfuhrer marked this pull request as ready for review August 8, 2019 08:41
@sfuhrer sfuhrer changed the title [WIP]: VTOL front transition fixes in mission mode VTOL front transition fixes in mission mode Aug 8, 2019
@sfuhrer
Copy link
Contributor Author

sfuhrer commented Aug 8, 2019

Flight logs:

  1. https://review.px4.io/3d?log=6ee671da-d7ce-463b-9483-17ecbddd0585 (aligning for VTOL_TRANSITION even with weather vane enabled)
  2. https://review.px4.io/plot_app?log=c510e280-078d-480b-8b5a-34188a8bdec6 (abort of heading aligning)
  3. https://review.px4.io/plot_app?log=0ae64b69-1380-4dd9-86df-32effab7557c (VTOL_TAKEOFF heading alignment)

@sfuhrer sfuhrer changed the title VTOL front transition fixes in mission mode VTOL front transition fixes/enhancements in mission mode Aug 12, 2019
@sfuhrer sfuhrer force-pushed the pr_vtol_front_trans_mission branch from 1615787 to 5a84dd0 Compare August 14, 2019 15:50
…t transition

Signed-off-by: Silvan Fuhrer <silvan@auterion.com>
Signed-off-by: Silvan Fuhrer <silvan@auterion.com>
…TOL_TAKEOFF waypoint (and enforce heading)

Signed-off-by: Silvan Fuhrer <silvan@auterion.com>
@RomanBapst
Copy link
Contributor

@sfuhrer Can you get rid of the unwanted submodule changes which slipped in?

@sfuhrer sfuhrer force-pushed the pr_vtol_front_trans_mission branch from 5a84dd0 to d542e6f Compare August 19, 2019 07:14
Copy link
Contributor

@RomanBapst RomanBapst left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Hybrid VTOL 🛩️🚁 Multirotor + Fixedwing!
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants