Fix standard_vtol_drop transition failure #913
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 #730This 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 thatcl_delta
andalpha0
elements in thestandard_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 renamingalpha0
also doesn't hurt so I included it in the PR.Discussion
Currently, still the
.sdf.jinja
files have some diff and I am suspecting that the airspeed sensor not working in thestandard_vtol_drop
SITL is related to this. @Jaeyoung-Lim according to the screenshot above, could you spot if airspeed plug-in is wrongly implemented instandard_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 🤔