Subversion Repositories FlightCtrl

Compare Revisions

Ignore whitespace Rev 179 → Rev 180

/branches/salvo_gps/math_alt.c
16,7 → 16,7
 
 
//-----------------------------------------------
// Fast arctan2
// Fast arctan2 with max error of .01 rads
// http://www.dspguru.com/comp.dsp/tricks/alg/fxdatan2.htm
//-----------------------------------------------
signed int arctan_i(signed int x, signed int y)
33,7 → 33,6
m = -1; // neg. für Quadrant III + IV
}
else m = 1;
if (x>=0)
{