Subversion Repositories FlightCtrl

Rev

Rev 308 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 308 Rev 309
Line 180... Line 180...
180
        u.i[1]=pgm_read_word((PGM_P)addr+2);
180
        u.i[1]=pgm_read_word((PGM_P)addr+2);
Line 181... Line 181...
181
       
181
       
182
        return u.f;
182
        return u.f;
Line -... Line 183...
-
 
183
}
-
 
184
 
-
 
185
// Kosinusfunktion im Gradmaß
-
 
186
float cos_f(signed int winkel)
183
}
187
{
Line 184... Line 188...
184
 
188
 return (sin_f(90-winkel));
185
 
189
}
186
 
190
 
187
// Sinusfunktion im Gradmaß
191
// Sinusfunktion im Gradmaß
Line 208... Line 212...
208
sinus = pgm_read_float(&pgm_sinus_f[winkel]);
212
sinus = pgm_read_float(&pgm_sinus_f[winkel]);
Line 209... Line 213...
209
 
213
 
210
return (sinus*m*n);
214
return (sinus*m*n);
Line 211... Line -...
211
}
-
 
212
 
-
 
213
// Kosinusfunktion im Gradmaß
-
 
214
float cos_f(signed int winkel)
-
 
215
{
-
 
216
 return (sin_f(90-winkel));
-
 
Line 217... Line 215...
217
}
215
}
Line 218... Line 216...
218
 
216
 
219
 
217
 
Line 227... Line 225...
227
        if (i < 0) {m=-1;i=abs(i);}
225
        if (i < 0) {m=-1;i=abs(i);}
228
        else m=1;
226
        else m=1;
Line 229... Line 227...
229
       
227
       
230
        return (pgm_read_byte(&pgm_asin[i]) * m);
228
        return (pgm_read_byte(&pgm_asin[i]) * m);
231
}
-