1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-23 00:05:33 +03:00

Fix new pid_at_min_throttle feature

This commit is contained in:
borisbstyle 2015-10-30 00:20:20 +01:00
parent 82645b5cab
commit 9028ca71d6

View file

@ -571,12 +571,12 @@ void processRx(void)
if (masterConfig.mixerConfig.pid_at_min_throttle > 1) { if (masterConfig.mixerConfig.pid_at_min_throttle > 1) {
if (pidResetErrorGyroTimeout < millis()) { if (pidResetErrorGyroTimeout < millis()) {
pidResetErrorGyro(); pidResetErrorGyro();
} else {
pidResetErrorGyroTimeout = millis() + (masterConfig.mixerConfig.pid_at_min_throttle * 1000);
} }
} else { } else {
pidResetErrorGyro(); pidResetErrorGyro();
} }
} else {
pidResetErrorGyroTimeout = millis() + (masterConfig.mixerConfig.pid_at_min_throttle * 1000);
} }
// When armed and motors aren't spinning, do beeps and then disarm // When armed and motors aren't spinning, do beeps and then disarm