Hi there,
I'm looking for a library that can calculate roll, pitch, yaw and heading angles using the MPU6500 IMU and that is compatible with Teensy 4.1.
I found the Reefwing AHRS library. There's an example patch for the MPU6500 and MKR boards (file attached). I'm not able to compile that code, though - even when I install and select a MKR Arduino board.
error message:
/Users/rita/Arduino/libraries/ReefwingAHRS/src/ReefwingAHRS.cpp: In member function 'void ReefwingAHRS::begin()':
/Users/rita/Arduino/libraries/ReefwingAHRS/src/ReefwingAHRS.cpp:97:27: error: expected primary-expression before ',' token
if (strncmp(BOARD_NAME, _boardTypeStr[4], 25) == 0) {
Any one an idea of what is going wrong here and how this library could be made to use with the Teensy 4.1 board?
Or perhaps another library fit for the job.
Would love some tips. Thank you!!!
I'm looking for a library that can calculate roll, pitch, yaw and heading angles using the MPU6500 IMU and that is compatible with Teensy 4.1.
I found the Reefwing AHRS library. There's an example patch for the MPU6500 and MKR boards (file attached). I'm not able to compile that code, though - even when I install and select a MKR Arduino board.
error message:
/Users/rita/Arduino/libraries/ReefwingAHRS/src/ReefwingAHRS.cpp: In member function 'void ReefwingAHRS::begin()':
/Users/rita/Arduino/libraries/ReefwingAHRS/src/ReefwingAHRS.cpp:97:27: error: expected primary-expression before ',' token
if (strncmp(BOARD_NAME, _boardTypeStr[4], 25) == 0) {
Any one an idea of what is going wrong here and how this library could be made to use with the Teensy 4.1 board?
Or perhaps another library fit for the job.
Would love some tips. Thank you!!!