/* Sets the 3x3 compass transform matrix in 32 bit floating point format.  */
void inv_set_compass_soft_iron_matrix_f(float *matrix)
/* Sets the 3x3 compass transform matrix in 32 bit floating point format.  */
void inv_set_compass_soft_iron_matrix_f(float *matrix)
{
        sensors.soft_iron.matrix_f[i] = matrix[i];
        sensors.soft_iron.matrix_d[i] = (long )(matrix[i]*ROT_MATRIX_SCALE_LONG);
    }
}