Fix numeric overflow for gyro calibration samples when using 32KHz sampling
commite4e4948c2ab8c25989e7777018aec1988312254b
authorBruce Luckcuck <github@etracer.net>
Tue, 15 May 2018 17:24:08 +0000 (15 13:24 -0400)
committerBruce Luckcuck <github@etracer.net>
Tue, 15 May 2018 17:24:08 +0000 (15 13:24 -0400)
tree402e68f0eba076688f595319be6b9fa5de50d674
parente405e41d0ca18c434ee9a058232af520fb7b8f7e
Fix numeric overflow for gyro calibration samples when using 32KHz sampling
The current data type was uint16 and that would overflow when using 32KHz sampling.  This caused the calibration to only run for about 0.9 seconds instead of the expected 3 seconds.  At 32KHz the sample count is 96774 which overflows uint16 so changed the data types to uint32.
src/main/sensors/gyro.c