8.1 change gimbal sensitivity from programming framework #10950
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.
PR Type
Enhancement
Description
Add gimbal sensitivity control via programming framework
Fix gimbal trim data types from uint16_t to int16_t
Enable runtime gimbal sensitivity adjustment through logic conditions
Changes diagram
Changes walkthrough 📝
gimbal_common.c
Add gimbal sensitivity setter functionsrc/main/drivers/gimbal_common.c
setGimbalSensitivity()function to update gimbal sensitivity atruntime
gimbal_common.h
Update gimbal config types and add function declarationsrc/main/drivers/gimbal_common.h
uint16_ttoint16_tfor signed valuessetGimbalSensitivity()logic_condition.c
Implement gimbal sensitivity logic conditionsrc/main/programming/logic_condition.c
LOGIC_CONDITION_SET_GIMBAL_SENSITIVITYcase handlerlogic_condition.h
Add gimbal sensitivity logic condition enumsrc/main/programming/logic_condition.h
LOGIC_CONDITION_SET_GIMBAL_SENSITIVITYenum value (55)LOGIC_CONDITION_LASTto 56Programming Framework.md
Document gimbal sensitivity programming featuredocs/Programming Framework.md
settings.yaml
Specify explicit types for gimbal settingssrc/main/fc/settings.yaml
int8_ttype for gimbal_sensitivity settingint16_ttype for gimbal trim settings