Browse Source

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

v1.13.0-BW
Beat Küng 3 years ago
parent
commit
e69d9ec48f
No known key found for this signature in database
GPG Key ID: 866DB5F0E24821BB
  1. 5
      src/drivers/dshot/DShot.cpp

5
src/drivers/dshot/DShot.cpp

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

Loading…
Cancel
Save