Subversion Repositories FlightCtrl

Compare Revisions

Ignore whitespace Rev 387 → Rev 388

/branches/v0.60_MicroMag3_Nick666/compass.c
224,7 → 224,8
heading = atan2_i(x_corr, y_corr);
// Wertebereich 0° bis 360°
if (heading < 0) heading = 360 + heading;
if (heading < 0) heading = -heading;
else heading = 360 - heading;
 
return (heading);
}