Enable flaps for plane model in SITL #14788
Merged
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.
Describe problem solved by this pull request
Previously, the plane model didn't have a flap although flaps were defined in the SITL mixers. This PR adds the ability to simulate flaps in the plane model. This makes the plane model more or less complete, since all actuator controls are actually consumed by the simulated model
Describe your solution
To enable this, the lift drag elements on the wings are split into two, where one simulates the aileron and one simulates the flaps. The center of pressure is placed separately along the wing near the center of the control surface.
Since it is not possible to control two joints through a single channel in
sitl_gazebo
, a channel was added to the mixer file.The meshfile comes from https://github.com/osrf/gazebo_models
Test data / coverage
Log: https://review.px4.io/plot_app?log=f5655069-3579-447b-8e9d-e158d1e7e0f8
Additional context
Flaps added on PX4/PX4-SITL_gazebo-classic#476