Subversion Repositories FlightCtrl

Rev

Rev 729 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 729 Rev 730
Line 234... Line 234...
234
       
234
       
235
        // Winkelberechnung
235
        // Winkelberechnung
Line 236... Line 236...
236
        heading = atan2_i(x_corr, y_corr);
236
        heading = atan2_i(x_corr, y_corr);
237
       
237
       
238
        // Skalieren von +-180° auf 0-360°
238
        // Skalieren von +-180° auf 0-360°
Line 239... Line 239...
239
        heading += 360;
239
        if (heading < 0) heading = -heading;
240
        heading %= 360;
240
        else heading = 360 - heading;