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:
parent
82645b5cab
commit
9028ca71d6
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue