I want to do this !!
combining a accelerometer and a gyroscope with madgwick algorythm
http://www.x-io.co.uk/res/sw/madgwick_algorithm_c.zip