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

Use static idle value to set the initial dynamic idle limit before takeoff (#13906)

use static idle value in dynamic idle
This commit is contained in:
ctzsnooze 2024-09-25 00:41:46 +10:00 committed by GitHub
parent 908f9cc32d
commit 6b5b5cfbdb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 4 additions and 7 deletions

View file

@ -118,7 +118,7 @@ PG_RESET_TEMPLATE(pidConfig_t, pidConfig,
#define LAUNCH_CONTROL_YAW_ITERM_LIMIT 50 // yaw iterm windup limit when launch mode is "FULL" (all axes)
PG_REGISTER_ARRAY_WITH_RESET_FN(pidProfile_t, PID_PROFILE_COUNT, pidProfiles, PG_PID_PROFILE, 10);
PG_REGISTER_ARRAY_WITH_RESET_FN(pidProfile_t, PID_PROFILE_COUNT, pidProfiles, PG_PID_PROFILE, 11);
void resetPidProfile(pidProfile_t *pidProfile)
{
@ -198,7 +198,6 @@ void resetPidProfile(pidProfile_t *pidProfile)
.dyn_idle_i_gain = 50,
.dyn_idle_d_gain = 50,
.dyn_idle_max_increase = 150,
.dyn_idle_start_increase = 50,
.feedforward_averaging = FEEDFORWARD_AVERAGING_OFF,
.feedforward_max_rate_limit = 90,
.feedforward_smooth_factor = 25,