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

refactor Thrust Linear to initialise throttleCompensateAmount in pid_init.c

Maybe this could avoid recaculating throttleCompensateAmount every PID loop?
This commit is contained in:
ctzsnooze 2020-07-07 15:11:17 +10:00
parent 41fa8754bc
commit 9a65b766a2
3 changed files with 3 additions and 2 deletions

View file

@ -351,6 +351,7 @@ typedef struct pidRuntime_s {
#ifdef USE_THRUST_LINEARIZATION
float thrustLinearization;
float throttleCompensateAmount;
#endif
#ifdef USE_AIRMODE_LPF