Fix gyro calibration zero offset calculation
commitce170990a214f61fc0294dbac667a39d77d6380d
authorBruce Luckcuck <github@etracer.net>
Wed, 16 May 2018 17:06:07 +0000 (16 13:06 -0400)
committerBruce Luckcuck <github@etracer.net>
Wed, 16 May 2018 17:06:07 +0000 (16 13:06 -0400)
tree71dc259105a233841140924b48bf3414fca8052b
parent1c605c384200f8686bcd7473a0078b4f39666557
Fix gyro calibration zero offset calculation
It seems like the gyro calibration sample count overflow fix (#5898) caused a downstream problem with the math to calculate the zero offset.  Casting the components of the formula to (float) solves the problem.
src/main/sensors/gyro.c