Rev 309 | Rev 319 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 309 | Rev 310 | ||
---|---|---|---|
Line 46... | Line 46... | ||
46 | { |
46 | { |
47 | MM3_timer0(); // Kompass auslesen |
47 | MM3_timer0(); // Kompass auslesen |
Line 48... | Line 48... | ||
48 | 48 | ||
49 | if (!cntKompass--) // Aufruf mit 25 Hz |
49 | if (!cntKompass--) // Aufruf mit 25 Hz |
50 | { |
- | |
- | 50 | { |
|
Line 51... | Line 51... | ||
51 | KompassValue = (MM3_heading()); |
51 | |
52 | 52 | ||
- | 53 | if (MM3_heading() > 0) { KompassValue = 360-MM3_heading();} |
|
Line 53... | Line 54... | ||
53 | if (KompassValue < 0 ) { KompassValue = 360+MM3_heading();} |
54 | if (MM3_heading() < 0 ) { KompassValue = MM3_heading()*-1;} |