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

Fix standard_vtol_drop transition failure #913

Closed

Conversation

junwoo091400
Copy link

About

Running the make px4_sitl gazebo_standard_vtol_drop and flying a mission with VTOL transition in upstream PX4 results in the vehicle going out of control. Which seems to be related to #730

This was found while developing PX4/PX4-Autopilot#20230

Fix

Doing diff /home/junwoo/PX4-Autopilot/Tools/simulation/gazebo/sitl_gazebo/models/standard_vtol/standard_vtol.sdf.jinja /home/junwoo/PX4-Autopilot/Tools/simulation/gazebo/sitl_gazebo/models/standard_vtol_drop/standard_vtol_drop.sdf.jinja clearly pointed out the fact that cl_delta and alpha0 elements in the standard_vtol_drop.sdf.jinja were outdated naming convention.

This PR includes 2 commits that updates these 2 variables. And it seems like renaming cl_delta alone fixed the crash, but renaming alpha0 also doesn't hurt so I included it in the PR.

Discussion

image

Currently, still the .sdf.jinjafiles have some diff and I am suspecting that the airspeed sensor not working in the standard_vtol_drop SITL is related to this. @Jaeyoung-Lim according to the screenshot above, could you spot if airspeed plug-in is wrongly implemented in standard_vtol_drop?

I'm also not sure how the standard_vtol itself has airspeed coming in, as I can't find the airspeed keyword in it's .sdf.jinja file 🤔

- This fixes the transition crash error, which seems to be related to
PX4#710 as well.
- While standard_vtol.sdf.jinja was updated to the new naming
convention, the standard_vtol_drop was not updated, this commit fixes
that.
- Also, PX4#730 is also relevant
for this issue.
- This now follows the convention for the liftdrag_plugin correctly
Copy link
Member

@Jaeyoung-Lim Jaeyoung-Lim left a comment

Choose a reason for hiding this comment

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

Airspeed is defined in the standard_vtol in https://github.com/PX4/PX4-SITL_gazebo/blob/669d7f5ae1f2211261eed4e48eb91099e5ec344b/models/standard_vtol/standard_vtol.sdf.jinja#L171-L179

Could you also fix the airspeed of the standard_vtol_drop to make the PR more complete?

@junwoo091400
Copy link
Author

Thanks for the review! Ah so the uri include was missing 🤦‍♂️. I will add that 👍

But I have also noticed other differences as well:

@Jaeyoung-Lim
Copy link
Member

@junwoo091400 It probably fell behind since the standard_vtol_drop was not really used. Please update it to the way it is linked in standard_vtol

@Jaeyoung-Lim
Copy link
Member

@junwoo091400 Any updates on this?

@Jaeyoung-Lim
Copy link
Member

Closing as stale,

@junwoo091400 Please reopen if you continue to work on it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants