Subversion Repositories FlightCtrl

Compare Revisions

Ignore whitespace Rev 771 → Rev 772

/branches/V0.68d Code Redesign killagreg/mm3.c
312,9 → 312,6
 
if (MM3_Timeout)
{
// calibration factor for transforming Gyro Integrals to angular degrees
div_factor = (uint16_t)ParamSet.UserParam3 * 8;
 
// Offset correction and normalization (values of H are +/- 512)
Hx = (((int32_t)(MM3.x_axis - MM3_calib.X_off)) * 1024) / (int32_t)MM3_calib.X_range;
Hy = (((int32_t)(MM3.y_axis - MM3_calib.Y_off)) * 1024) / (int32_t)MM3_calib.Y_range;