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

Baro thrust scaling #28982

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

andyp1per
Copy link
Collaborator

This allows a user to apply a linear pressure compensation to a baro based on thrust output. On a small whoop there is a very causal relationship between pressure and throttle:

image

By applying this offset the effect can be normalized:

image

Set by using ```BAROx_THST_SCALE"

@andyp1per andyp1per force-pushed the pr-baro-mot-comp branch 2 times, most recently from 2ea1cf1 to a64c7e9 Compare January 1, 2025 20:56
@@ -103,3 +103,7 @@
// this allows for using the simple model with the --ekf-single configure option
#define AP_BARO_1976_STANDARD_ATMOSPHERE_ENABLED HAL_WITH_EKF_DOUBLE || AP_SIM_ENABLED
#endif

#ifndef HAL_BARO_THST_COMP_ENABLED
#define HAL_BARO_THST_COMP_ENABLED 1
Copy link
Contributor

Choose a reason for hiding this comment

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

Need to know how useful this might be on other vehicles. And flash cost...

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Cost 160 bytes avg on Durandal

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

Successfully merging this pull request may close these issues.

2 participants