After un-commenting the sparkfun sensor stick define the code will no compile, there are a load of errors as follows
/home/dogmatic69/.apps/arduino-test/libraries/FreeIMU/FreeIMU.cpp:218: error: expected constructor, destructor, or type conversion before ‘=’ token
/home/dogmatic69/.apps/arduino-test/libraries/FreeIMU/FreeIMU.cpp:219: error: expected constructor, destructor, or type conversion before ‘=’ token
/home/dogmatic69/.apps/arduino-test/libraries/FreeIMU/FreeIMU.cpp:220: error: expected constructor, destructor, or type conversion before ‘=’ token
/home/dogmatic69/.apps/arduino-test/libraries/FreeIMU/FreeIMU.cpp:221: error: expected constructor, destructor, or type conversion before ‘=’ token
/home/dogmatic69/.apps/arduino-test/libraries/FreeIMU/FreeIMU.cpp:222: error: expected constructor, destructor, or type conversion before ‘=’ token
/home/dogmatic69/.apps/arduino-test/libraries/FreeIMU/FreeIMU.cpp:223: error: expected constructor, destructor, or type conversion before ‘=’ token
/home/dogmatic69/.apps/arduino-test/libraries/FreeIMU/FreeIMU.cpp:224: error: expected constructor, destructor, or type conversion before ‘=’ token
/home/dogmatic69/.apps/arduino-test/libraries/FreeIMU/FreeIMU.cpp:225: error: expected constructor, destructor, or type conversion before ‘=’ token
/home/dogmatic69/.apps/arduino-test/libraries/FreeIMU/FreeIMU.cpp:226: error: expected constructor, destructor, or type conversion before ‘=’ token
/home/dogmatic69/.apps/arduino-test/libraries/FreeIMU/FreeIMU.cpp:227: error: expected constructor, destructor, or type conversion before ‘=’ token
/home/dogmatic69/.apps/arduino-test/libraries/FreeIMU/FreeIMU.cpp:260: error: expected unqualified-id before ‘if’
/home/dogmatic69/.apps/arduino-test/libraries/FreeIMU/FreeIMU.cpp:281: error: expected unqualified-id before ‘if’
the code causing the errors is:
// Auxiliary variables to avoid repeated arithmetic
q0q0 = q0 * q0;
q0q1 = q0 * q1;
q0q2 = q0 * q2;
q0q3 = q0 * q3;
q1q1 = q1 * q1;
q1q2 = q1 * q2;
q1q3 = q1 * q3;
q2q2 = q2 * q2;
q2q3 = q2 * q3;
q3q3 = q3 * q3;
Fixed in http:// www.varesano. net/files/ libraries_ 20120118_ 0959.zip
Thanks for pointing this out.