laptophead
Well-known member
This IMU is serial interfaced, and does a lot of calculations and corrections internally, so I was attracted to it.
The manufacturer provides a small library that compiles fine for Ardu mega, but not for teensy...
I get
Arduino: 1.8.13 (Mac OS X), TD: 1.53, Board: "Teensy 4.1, Serial, 600 MHz, Faster, US English"
In file included from /Users/mitchanderson/Documents/Arduino/libraries/JY901SerialMega2560/JY901.cpp:1:0:
/Users/mitchanderson/Documents/Arduino/libraries/JY901SerialMega2560/JY901.h:8:17: error: expected unqualified-id before numeric constant
#define BAUD 0x04
^
/Applications/Arduino.app/Contents/Java/hardware/teensy/avr/cores/teensy4/imxrt.h:6769:20: note: in expansion of macro 'BAUD'
volatile uint32_t BAUD;
^
Error compiling for board Teensy 4.1.
Should I modify something in the CCP or .h ?
Thanks a lot.
View attachment JY901.cppView attachment JY901.hView attachment JY901Serial.ino
The manufacturer provides a small library that compiles fine for Ardu mega, but not for teensy...
I get
Arduino: 1.8.13 (Mac OS X), TD: 1.53, Board: "Teensy 4.1, Serial, 600 MHz, Faster, US English"
In file included from /Users/mitchanderson/Documents/Arduino/libraries/JY901SerialMega2560/JY901.cpp:1:0:
/Users/mitchanderson/Documents/Arduino/libraries/JY901SerialMega2560/JY901.h:8:17: error: expected unqualified-id before numeric constant
#define BAUD 0x04
^
/Applications/Arduino.app/Contents/Java/hardware/teensy/avr/cores/teensy4/imxrt.h:6769:20: note: in expansion of macro 'BAUD'
volatile uint32_t BAUD;
^
Error compiling for board Teensy 4.1.
Should I modify something in the CCP or .h ?
Thanks a lot.
View attachment JY901.cppView attachment JY901.hView attachment JY901Serial.ino