Update pid.c
This commit is contained in:
parent
4546372dac
commit
c4f3a6101d
|
@ -450,7 +450,7 @@ void pidController(const pidProfile_t *pidProfile, const rollAndPitchTrims_t *an
|
|||
previousRateError[axis] = rD;
|
||||
|
||||
// if crash recovery is on and accelerometer enabled then check for a crash
|
||||
if (pidProfile->crash_recovery && sensors(SENSOR_ACC) && inCrashRecoveryMode ==false) {
|
||||
if (pidProfile->crash_recovery && sensors(SENSOR_ACC) && inCrashRecoveryMode == false) {
|
||||
if (motorMixRange >= 1.0f
|
||||
&& ABS(delta) > crashDtermThreshold
|
||||
&& ABS(errorRate) > crashGyroThreshold
|
||||
|
|
Loading…
Reference in New Issue