mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-19 22:35:23 +03:00
mag headfree fix after sensor unfucking thx Luggi09
git-svn-id: https://afrodevices.googlecode.com/svn/trunk/baseflight@463 7c89a4a9-59b9-e629-4cfe-3a2d53b20e61
This commit is contained in:
parent
35f0a8e4b0
commit
639f534c31
1 changed files with 1 additions and 0 deletions
1
src/mw.c
1
src/mw.c
|
@ -818,6 +818,7 @@ void loop(void)
|
|||
dif += 360;
|
||||
if (dif >= +180)
|
||||
dif -= 360;
|
||||
dif *= -mcfg.yaw_control_direction;
|
||||
if (f.SMALL_ANGLES_25)
|
||||
rcCommand[YAW] -= dif * cfg.P8[PIDMAG] / 30; // 18 deg
|
||||
} else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue