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:
parent
41fa8754bc
commit
9a65b766a2
3 changed files with 3 additions and 2 deletions
|
@ -351,6 +351,7 @@ typedef struct pidRuntime_s {
|
|||
|
||||
#ifdef USE_THRUST_LINEARIZATION
|
||||
float thrustLinearization;
|
||||
float throttleCompensateAmount;
|
||||
#endif
|
||||
|
||||
#ifdef USE_AIRMODE_LPF
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue