Subversion Repositories FlightCtrl

Compare Revisions

Ignore whitespace Rev 239 → Rev 240

/branches/v0.60_MicroMag3_Nick666/compass.c
111,10 → 111,10
signed int heading;
//Berechung von sinus und cosinus
sin_nick = (float)sin_f(MM3.NickGrad);
cos_nick = (float)cos_f(MM3.NickGrad);
sin_roll = (float)sin_f(MM3.RollGrad);
cos_roll = (float)cos_f(MM3.RollGrad);
sin_nick = sin_f(MM3.NickGrad);
cos_nick = cos_f(MM3.NickGrad);
sin_roll = sin_f(MM3.RollGrad);
cos_roll = cos_f(MM3.RollGrad);
//Neigungskompensation
y_corr = ((cos_roll * MM3.y_axis) + (sin_roll * MM3.z_axis));