ZHomeSlice / Simple_MPU6050

Going Live
MIT License
88 stars 24 forks source link

fixed a bug in getMagnitude() for VectorInt16 #2

Closed yolomilk closed 5 years ago

yolomilk commented 5 years ago

casting x, y and z components of VectorInt16 to float first when calculating the magnitude. This avoids errors when using large values.