pwm: Add PWM center support to Wheel and Gimbal (#26211)

* Add Wheel and Gimbal support to PWM center

* Document Center feature for PWM Gimbal
This commit is contained in:
Nick
2026-01-06 18:05:35 +01:00
committed by GitHub
parent 819c783b6c
commit 38b6a9abf3
3 changed files with 5 additions and 3 deletions
+4 -2
View File
@@ -545,8 +545,10 @@ uint16_t MixingOutput::output_limit_calc_single(int i, float value) const
float output = _disarmed_value[i];
if (_function_assignment[i] >= OutputFunction::Servo1
&& _function_assignment[i] <= OutputFunction::ServoMax
if (((_function_assignment[i] >= OutputFunction::Servo1
&& _function_assignment[i] <= OutputFunction::ServoMax) || _function_assignment[i] == OutputFunction::Landing_Gear_Wheel
|| (_function_assignment[i] >= OutputFunction::Gimbal_Roll
&& _function_assignment[i] <= OutputFunction::Gimbal_Yaw))
&& _param_handles[i].center != PARAM_INVALID
&& _center_value[i] >= 800
&& _center_value[i] <= 2200) {