wont compile with #define SEN_10724 for sparkfun 9dof stick

Bug #917936 reported by dogmatic69
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
FreeIMU
Fix Released
Critical
Fabio Varesano

Bug Description

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;

Revision history for this message
Fabio Varesano (fabio-varesano) wrote :

Fixed in http://www.varesano.net/files/libraries_20120118_0959.zip

Thanks for pointing this out.

Changed in freeimu:
status: New → Fix Released
importance: Undecided → Critical
assignee: nobody → Fabio Varesano (fabio-varesano)
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.