-
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
SIH: Add Standard VTOL Airframe #24175
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
RomanBapst
reviewed
Jan 8, 2025
ROMFS/px4fmu_common/init.d/airframes/1103_standard_vtol_sih.hil
Outdated
Show resolved
Hide resolved
RomanBapst
reviewed
Jan 8, 2025
ROMFS/px4fmu_common/init.d/airframes/1103_standard_vtol_sih.hil
Outdated
Show resolved
Hide resolved
RomanBapst
reviewed
Jan 8, 2025
RomanBapst
reviewed
Jan 8, 2025
mostly took changes from 4d930bd and applied to main. generate_fw_aerodynamics now takes four arguments rather than using the _u class member, because depending on vehicle type _u is used differently.
- NB_MOTORS -> NB_ACTUATORS_MAX. the _u array also contains control surface deflections. - thrust -> throttle_cmd to match the other arguments
mbjd
force-pushed
the
standard_vtol_sih_integration_1
branch
from
January 9, 2025 10:53
f7cdc7a
to
516a0cc
Compare
Jaeyoung-Lim
approved these changes
Jan 9, 2025
RomanBapst
approved these changes
Jan 9, 2025
mbjd
added a commit
to PX4/PX4-user_guide
that referenced
this pull request
Jan 10, 2025
Document SIH Standard VTOL Airframe, added in PX4/PX4-Autopilot#24175
mbjd
added a commit
to mbjd/PX4-Autopilot
that referenced
this pull request
Jan 13, 2025
In PR PX4#24175 I changed the control surface deflection signs in generate_fw_aerodynamics to make the 1103 airframe work correctly. However, this breaks the 1101 airframe, introducing sing errors there. So, here the change in generate_fw_aerodynamics is reverted to the state before PR PX4#24175. Instead, the signs are set correctly by using the HIL_ACT_REV bitfield in the respective airframe config files.
mbjd
added a commit
to mbjd/PX4-Autopilot
that referenced
this pull request
Jan 13, 2025
In PR PX4#24175 I changed the control surface deflection signs in generate_fw_aerodynamics to make the 1103 airframe work correctly. However, this breaks the 1101 airframe, introducing sing errors there. So, here the change in generate_fw_aerodynamics is reverted to the state before PR PX4#24175. Instead, the signs are set correctly by using the HIL_ACT_REV bitfield in the respective airframe config files.
mbjd
added a commit
to mbjd/PX4-Autopilot
that referenced
this pull request
Jan 14, 2025
In PR PX4#24175 I changed the control surface deflection signs in generate_fw_aerodynamics to make the 1103 airframe work correctly. However, this breaks the 1101 airframe, introducing sing errors there. So, here the change in generate_fw_aerodynamics is reverted to the state before PR PX4#24175. Instead, the signs are set correctly by using the HIL_ACT_REV bitfield in the respective airframe config files.
mbjd
added a commit
to mbjd/PX4-Autopilot
that referenced
this pull request
Jan 15, 2025
In PR PX4#24175 I changed the control surface deflection signs in generate_fw_aerodynamics to make the 1103 airframe work correctly. However, this breaks the 1101 airframe, introducing sing errors there. So, here the change in generate_fw_aerodynamics is reverted to the state before PR PX4#24175. Instead, the signs are set correctly by using the HIL_ACT_REV bitfield in the respective airframe config files.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Solved Problem
The standard VTOL airframe was previously not available for simulation-in-hardware (SIH). With these changes, it is.
Solution
We add a new SIH specific SVTOL airframe file, ROMFS/px4fmu_common/init.d/airframes/1103_standard_vtol_sih.hil. In src/modules/simulation/simulator_sih/sih.cpp, we add the corresponding
SVTOL
vehicle type. These are changes from this commit (thanks @RomanBapst), applied to upstream/main.Changelog Entry
For release notes:
Test coverage
SIH test log: https://review.px4.io/plot_app?log=92dedeaf-78f7-4771-9556-fd8a0386d5b1