mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-24 08:45:36 +03:00
Add better CLI descriptions for pid_at_min_throttle
This commit is contained in:
parent
e6e5e3e33b
commit
5ebfd23ca9
2 changed files with 22 additions and 15 deletions
|
@ -100,6 +100,7 @@ enum {
|
|||
#define PREVENT_RX_PROCESS_PRE_LOOP_TRIGGER 80 // Prevent RX processing before expected loop trigger
|
||||
#define PREVENT_BARO_READ_PRE_LOOP_TRIGGER 150 // Prevent BARO processing before expected loop trigger
|
||||
#define GYRO_RATE 0.001f // Gyro refresh rate 1khz
|
||||
#define PID_AT_MIN_THROTTLE_ITERM_DELAY (3 * 1000)
|
||||
|
||||
uint32_t currentTime = 0;
|
||||
uint32_t previousTime = 0;
|
||||
|
@ -578,7 +579,7 @@ void processRx(void)
|
|||
pidResetErrorGyro();
|
||||
}
|
||||
} else {
|
||||
pidResetErrorGyroTimeout = millis() + (masterConfig.mixerConfig.pid_at_min_throttle * 1000);
|
||||
pidResetErrorGyroTimeout = millis() + PID_AT_MIN_THROTTLE_ITERM_DELAY;
|
||||
}
|
||||
|
||||
// When armed and motors aren't spinning, do beeps and then disarm
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue