Rev 309 | Rev 316 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 309 | Rev 313 | ||
---|---|---|---|
Line 91... | Line 91... | ||
91 | // { |
91 | // { |
92 | MM3_timer0(); // Kompass auslesen |
92 | MM3_timer0(); // Kompass auslesen |
Line 93... | Line 93... | ||
93 | 93 | ||
94 | if (!cntKompass--) // Aufruf mit 25 Hz |
94 | if (!cntKompass--) // Aufruf mit 25 Hz |
95 | { |
- | |
- | 95 | { |
|
Line 96... | Line 96... | ||
96 | KompassValue = (MM3_heading()); |
96 | |
97 | 97 | ||
- | 98 | if (MM3_heading() > 0) { KompassValue = 360-MM3_heading();} |
|
Line 98... | Line 99... | ||
98 | if (KompassValue < 0 ) { KompassValue = 380+MM3_heading();} |
99 | if (MM3_heading() < 0 ) { KompassValue = MM3_heading()*-1;} |