Subversion Repositories FlightCtrl

Compare Revisions

Ignore whitespace Rev 407 → Rev 408

/branches/v0.60_MicroMag3_Nick666/trunc/compass.c
244,8 → 244,7
y_corr = y_axis * cos_roll;
y_corr += z_axis * sin_roll;
// Winkelberechnung
// Winkelberechnung
heading = atan2_i(x_corr, y_corr);
if (heading < 0) heading = -heading;
else heading = 360 - heading;