Coder Social home page Coder Social logo

mpu9255-arduino-library's People

Contributors

bill2462 avatar jmaravalhassilva avatar jsgilberto avatar per1234 avatar tomasroj avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

mpu9255-arduino-library's Issues

Datasheet

Which datasheet (pdf) did you refer to?
Yours is the only library having WHO_AMI_I register at 0x77 and the only library which is working with my CJ sensor.

Magnetometer readings are incorrect - byte order issue

The code for magnetometer reading must be fixed. The byte order is incorrect according to datasheet. The code should read:

`/**

  • @brief Read readings from magnetometer.
    */
    void MPU9255::read_mag()
    {
    requestBytes(MAG_address, MAG_XOUT_L, 8);//note we must request 8 bytes of data because otherwise it does not work

uint8_t rawData[6];
readArray(rawData,6);

mx = ((int16_t)rawData[1] << 8) | rawData[0];
my = ((int16_t)rawData[3] << 8) | rawData[2];
mz = ((int16_t)rawData[5] << 8) | rawData[4];
}
`

enum interrupts conflict with void interrupts

i used your lib with TI CC1350 CC1310.
I couldn't compile because enum interrupts {...} was conflicting with core function void interrupts().
To avoid further conflicts may be it is better to rename enum interrupts to mpu_interrupts.
After following changes it worked for me:
// change in MPU9255.h:
// //interrupt pin settings
// enum interrupts {...}
// to
// enum mpu_interrupts {...}
//
// and in and MPU9255_Interrupts.cpp:
// enable_interrupt_output(interrupts selected_interrupt)
// disable_interrupt_output(interrupts selected_interrupt)
// to
// enable_interrupt_output(mpu_interrupts selected_interrupt)
// disable_interrupt_output(mpu_interrupts selected_interrupt)

Magnetometer values are constant

Hi, I tried using your library but the mx, my, mz values are -1 in raw and -15 in dataprocessing. I am using mpu 9250/9255 with ic mp95.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.