Fix altitude hold climb rate calculation deadband issue #11241
+9
−3
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.
User description
Summary
Removes double application of RC deadband in multicopter altitude hold climb rate calculation.
Problem
The deadband was being applied twice:
This caused the actual climb rate to not match the configured value in the configurator.
Solution
Remove the second deadband application from . The limit value now uses the raw throttle range for proper scaling, while the deadband remains applied only to the stick input.
Testing
Impact
Fixes user-reported issue where manual climb rate doesn't match configurator setting.
Fixes #10660
PR Type
Bug fix
Description
Removes double application of RC deadband in altitude hold climb rate calculation
Fixes climb rate not matching configurator settings
Applies deadband only to stick input, uses raw throttle range for scaling
Diagram Walkthrough
File Walkthrough
navigation_multicopter.c
Fix double deadband application in climb rate calculationsrc/main/navigation/navigation_multicopter.c
applyDeadbandRescaled()call onlimitValuecalculation
limitValueto use raw throttle range (difference fromaltHoldThrottleRCZero)rcThrottleAdjustmentrate scaling