Rev 384 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 384 | Rev 388 | ||
---|---|---|---|
Line 222... | Line 222... | ||
222 | 222 | ||
223 | // Winkelberechnung |
223 | // Winkelberechnung |
Line 224... | Line 224... | ||
224 | heading = atan2_i(x_corr, y_corr); |
224 | heading = atan2_i(x_corr, y_corr); |
225 | 225 | ||
- | 226 | // Wertebereich 0° bis 360° |
|
Line 226... | Line 227... | ||
226 | // Wertebereich 0° bis 360° |
227 | if (heading < 0) heading = -heading; |
227 | if (heading < 0) heading = 360 + heading; |
228 | else heading = 360 - heading; |