This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Including C++ library in C project?

Hi Nordic,

I want to include this library (github.com/.../MPU6050.cpp) in my project, which is an evolution from ant_ broadcast example, in C. However, and after reading several related posts, I am not able to compile my project when I add this library. Can anyone give me some support with this? Otherwise I would have to re-write the whole library in C, and this task is not an easy one..

Thanks a lot for your help!

EDIT: I can properly do, with my own C library, reads of all the registers in MPU6050. What I cannot do is use the DMP at all, and I want the acceleration with no gravity, which can only be done if you mix data from accelerometer and gyroscope and do some kind of filtering. The DMP does it internally, but the library I referred to is needed.

Related