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:
timecop@gmail.com 2013-10-30 13:39:05 +00:00
parent 35f0a8e4b0
commit 639f534c31
1 changed files with 1 additions and 0 deletions

View File

@ -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