-
Notifications
You must be signed in to change notification settings - Fork 17.9k
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
base: master
Are you sure you want to change the base?
Baro thrust scaling #28982
Conversation
2ea1cf1
to
a64c7e9
Compare
libraries/AP_Baro/AP_Baro_config.h
Outdated
@@ -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 |
There was a problem hiding this comment.
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...
There was a problem hiding this comment.
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
a64c7e9
to
e6894e1
Compare
The parameter is error at max thrust? |
Not sure I follow? |
The parameter description says "User provided thrust scaling in Pascals. This is used to adjust linearly based on the thrust output for local pressure difference induced by the props.". If it's a linear scaling, it should be Pascals per something. The code uses the scale as |
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:
By applying this offset the effect can be normalized:
Set by using ```BAROx_THST_SCALE"