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 7784cd1f40
commit 8da02e2233

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()