1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-22 07:45:29 +03:00

Sets antigravity gain to 0 when the user wants none.

In the PR adding P to antigravity, the default value was changed so that zero now meant no antigravity, whereas before 1000 meant none.  Unfortunately, `ITERM_ACCELERATOR_GAIN_OFF` remained at 1000.  This was an oversight.
Note also that the default value of 3500 now results in more antigravity effect than previously; it is equivalent to 4500 in the previous system.
This commit is contained in:
ctzsnooze 2020-10-20 23:54:50 +11:00
parent 20852146cf
commit 62ee1fd6cd

View file

@ -52,7 +52,7 @@
// Anti gravity I constant
#define AG_KI 21.586988f;
#define ITERM_ACCELERATOR_GAIN_OFF 1000
#define ITERM_ACCELERATOR_GAIN_OFF 0
#define ITERM_ACCELERATOR_GAIN_MAX 30000
typedef enum {
PID_ROLL,