0

I'm looking for a library which would allow me to read the MPU9250 data without having to deal with float. So far, I have found 3 libraries:

  • FaBo_202_9Axis_MPU9250
  • MPU9250_asukiaaa
  • SparkFun_MPU-9250_9_DOF

None of them seem to expose raw integer acceleration values, only floats.

  • I looked at SparkFun's library and ax, ay, az, gx, gy, gz, mx, my and mz are all integers. – gre_gor Feb 5 '18 at 19:30
  • @gre_gor Are we talking about this file? I can clearly see floats there. – Dmitry Grigoryev Feb 5 '18 at 22:37
  • 1
    I have put "SparkFun_MPU-9250_9_DOF" into Google and the second hit was this library. It seems SparkFun has multiple libraries for MPU9250. – gre_gor Feb 5 '18 at 22:52
  • @gre_gor That library doesn't support AVR chips. – Dmitry Grigoryev Feb 5 '18 at 23:00
  • The library you linked also returns integers with readAccelData, readGyroData and readMagData. – gre_gor Feb 6 '18 at 2:53

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.