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

SIH airframes: clean up config #24263

Merged
merged 1 commit into from
Jan 29, 2025
Merged

Conversation

mbjd
Copy link
Contributor

@mbjd mbjd commented Jan 29, 2025

Removed unnecessary params in all sihsim airframe files, as well as standard VTOL for SIH on FC (1103).

@mbjd mbjd requested a review from sfuhrer January 29, 2025 08:43
@mbjd mbjd changed the title Add standard VTOL airframe for SIH-as-SITL, clean up config clean up config of SIH airframes Jan 29, 2025
@mbjd mbjd changed the title clean up config of SIH airframes SIH airframes: clean up config Jan 29, 2025
@mbjd mbjd force-pushed the standard_vtol_config_cleanup branch from 6ba0af5 to a5d8dc9 Compare January 29, 2025 10:17
param set-default FW_AIRSPD_TRIM 10
param set-default FW_AIRSPD_MAX 20
param set-default FW_AIRSPD_MIN 10
param set-default FW_AIRSPD_TRIM 15
Copy link
Contributor

Choose a reason for hiding this comment

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

Does it fly nice at this higher airspeed?

Copy link
Contributor Author

@mbjd mbjd Jan 29, 2025

Choose a reason for hiding this comment

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

With the params here, it only reaches about 12 m/s where it flies perfectly. When increasing SIH_T_MAX to 6.5N (corresponding to CA_ parameters? is CT = max thrust?) it can do 18 m/s which still looks good. Although it only uses <60% thrust in that phase so surely it could reach 20 too. Here's a log to judge with a second set of eyes: https://logs.px4.io/plot_app?log=bcb83c1e-2399-419f-9970-79389b84a3e6 (large airspeed spike was right when I increased SIH_T_MAX)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

also keep in mind that there is still this magic number doubling the forward thrust:

https://github.com/mbjd/PX4-Autopilot/blob/5bca71791a27db30e89e8904c40cab51e11f8e8b/src/modules/simulation/simulator_sih/sih.cpp#L344

and probably more of this type of hackiness in sih.cpp. so the sims should be taken with several grains of salt until the models are overhauled and thoroughly validated.

Copy link
Contributor

Choose a reason for hiding this comment

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

Okay but then I would be in favor or reverting these changes for the airspeed setpoint again, and address modelling in a separate work.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

reverted 👍

@mbjd mbjd force-pushed the standard_vtol_config_cleanup branch from a5d8dc9 to bf0a88d Compare January 29, 2025 10:53
 - set SIH_L_ROLL that agrees with CA_* rotor geometry
 - remove unnecessary params & comments
 - clarify that ailerons are single channel
@mbjd mbjd force-pushed the standard_vtol_config_cleanup branch from bf0a88d to 4824949 Compare January 29, 2025 15:02
Copy link
Contributor

@sfuhrer sfuhrer left a comment

Choose a reason for hiding this comment

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

Looking good, thanks!

@sfuhrer sfuhrer merged commit 96105ca into PX4:main Jan 29, 2025
54 of 57 checks passed
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