Skip to content

Commit

Permalink
dshot: avoid using pwm failsafe params when dynamic mixing is enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
bkueng committed May 2, 2022
1 parent 7784cd1 commit 8da02e2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/drivers/dshot/DShot.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 8da02e2

Please sign in to comment.