Subversion Repositories FlightCtrl

Compare Revisions

Ignore whitespace Rev 729 → Rev 730

/branches/MicroMag3_Nick666/trunc/compass.c
236,8 → 236,8
heading = atan2_i(x_corr, y_corr);
// Skalieren von +-180° auf 0-360°
heading += 360;
heading %= 360;
if (heading < 0) heading = -heading;
else heading = 360 - heading;
 
return (heading);
}