From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
I remember LIFA use the wire.h library to communicate with i2c devices which is the same with the library I recommend. You just need to find the registers with compass on MPU 9150. And the other operations are similiar with MPU 6050.
Maybe you can take a reference at this for further implementation.