Has anyone looked at porting the Bosch BNO055 library. I have and application that uses the 9-Axis shield and the Bosch library with and Arduino Mega and the YUN Shield. I would like to use this on Particle.
I started to see if it would be easy to port and had thing down to a couple of issues and the fix for that exploded into 370 errors where I get errors like ‘uint8_t does not name a type’ from statements like the one below.
#define BNO055_WR_FUNC_PTR int8_t (*bus_write)\ (uint8_t, uint8_t , uint8_t *, uint8_t)
The original code was rather abstract it what looks like an attempt to make the library work on nearly any machine as it had a typedefs like this and macros like the above:
/* singed integer type*/ typedef int8_t s_8;/**< used for signed 8bit */ typedef int16_t s_16;/**< used for signed 16bit */ typedef int32_t s_32;/**< used for signed 32bit */ typedef int64_t s_64;/**< used for signed 64bit */
But these caused problems so I did a simple replace of “s_8” with “int8_t” which solved most problems but I am kind of stuck do impart from my limited knowledge of the c language.
Anyone have any ideas?