pwm out: disable PWM parameter update on param change

Only update PWM params on initialisation.
Updating PWM params on param change was interfering with VTOL
parameter settings (e.g. PWM_MIN is set by VTOL at init, and
was then overwritten here after an arbitrary param change).

Signed-off-by: Silvan Fuhrer <silvan@auterion.com>
This commit is contained in:
Silvan Fuhrer 2021-06-01 00:06:07 +02:00 committed by Daniel Agar
parent c6d5bd868e
commit 697d713faf
1 changed files with 1 additions and 1 deletions

View File

@ -640,7 +640,7 @@ void PWMOut::Run()
_parameter_update_sub.copy(&pupdate);
// update parameters from storage
update_params();
// update_params(); // do not update PWM params for now (was interfering with VTOL PWM settings)
}
if (_current_update_rate == 0) {