dshot: avoid using pwm failsafe params when dynamic mixing is enabled

This commit is contained in:
Beat Küng 2022-04-29 08:02:04 +02:00
parent f033e164fe
commit e69d9ec48f
No known key found for this signature in database
GPG Key ID: 866DB5F0E24821BB

View File

@ -47,6 +47,11 @@ DShot::DShot() :
_mixing_output.setAllDisarmedValues(DSHOT_DISARM_VALUE);
_mixing_output.setAllMinValues(DSHOT_MIN_THROTTLE);
_mixing_output.setAllMaxValues(DSHOT_MAX_THROTTLE);
if (_mixing_output.useDynamicMixing()) {
// Avoid using the PWM failsafe params
_mixing_output.setAllFailsafeValues(UINT16_MAX);
}
}
DShot::~DShot()