From 038a1226ec8f22a231aef794a0375b347a928b7f Mon Sep 17 00:00:00 2001 From: Trey Marc Date: Wed, 16 Apr 2014 17:20:40 +0200 Subject: [PATCH] Update imu.c speed up troll angle --- src/imu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/imu.c b/src/imu.c index 9c7ce0316b..95dc12a5c3 100644 --- a/src/imu.c +++ b/src/imu.c @@ -315,7 +315,7 @@ static void getEstimatedAttitude(void) int angle = lrintf(acosf(cosZ) * throttleAngleScale); if (angle > 900) angle = 900; - throttleAngleCorrection = lrintf(cfg.throttle_correction_value * sinf(angle / 900.0f * M_PI / 2.0f)) ; + throttleAngleCorrection = lrintf(cfg.throttle_correction_value * sinf(angle / (900.0f * M_PI / 2.0f))) ; } }