Rev 316 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 316 | Rev 322 | ||
---|---|---|---|
Line 62... | Line 62... | ||
62 | else PORTC &= ~(1<<7); |
62 | else PORTC &= ~(1<<7); |
63 | } |
63 | } |
Line 64... | Line 64... | ||
64 | 64 | ||
65 | if(EE_Parameter.GlobalConfig & CFG_KOMPASS_AKTIV) |
65 | if(EE_Parameter.GlobalConfig & CFG_KOMPASS_AKTIV) |
66 | { |
- | |
67 | if(PINC & 0x10) |
- | |
68 | { |
- | |
69 | cntKompass++; |
- | |
70 | } |
- | |
71 | else |
66 | { |
Line 72... | Line 67... | ||
72 | { |
67 | |
Line 73... | Line 68... | ||
73 | 68 | ||
74 | MM3_timer0(); // Kompass auslesen |
69 | MM3_timer0(); // Kompass auslesen |
Line 85... | Line 80... | ||
85 | KompassRichtung = ((540 + KompassValue - KompassStartwert) % 360); |
80 | KompassRichtung = ((540 + KompassValue - KompassStartwert) % 360); |
86 | cntKompass = 640; |
81 | cntKompass = 640; |
87 | } |
82 | } |
88 | } |
83 | } |
89 | } |
84 | } |
90 | } |
85 | |
Line 91... | Line 86... | ||
91 | 86 | ||
92 | 87 | ||
93 | void Timer_Init(void) |
88 | void Timer_Init(void) |