SparkFun_MPU-9250-DMP_Arduino_Library icon indicating copy to clipboard operation
SparkFun_MPU-9250-DMP_Arduino_Library copied to clipboard

qToFloat mask bits default to short

Open vcortex91 opened this issue 7 years ago • 0 comments

on line 618 of src/SparkFunMPU9250-DMP.cpp, in my implementation (Arduino 1.6.5, Atmega32U4 Pro Micro) the variable is assumed to be a uint16_t and causes undesirable behavior when q>15. probably should be specified as unsigned long.

output from loop with q=16: 1 3 7 F 1F 3F 7F FF 1FF 3FF 7FF FFF 1FFF 3FFF 7FFF FFFFFFFF

vcortex91 avatar Feb 14 '17 04:02 vcortex91