Rev 127 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 127 | Rev 144 | ||
---|---|---|---|
Line 48... | Line 48... | ||
48 | 48 | ||
49 | signal = (unsigned int) ICR1 - AltICR; |
49 | signal = (unsigned int) ICR1 - AltICR; |
Line 50... | Line 50... | ||
50 | AltICR = ICR1; |
50 | AltICR = ICR1; |
51 | 51 | ||
52 | //Syncronisationspause? |
52 | //Syncronisationspause? |
53 | if ((signal > 1000) && (signal < 5000)) |
53 | if ((signal > 1500) && (signal < 8000)) |
54 | { |
54 | { |
55 | index = 1; |
55 | index = 1; |
Line 56... | Line 56... | ||
56 | NewPpmData = 0; // Null bedeutet: Neue Daten |
56 | NewPpmData = 0; // Null bedeutet: Neue Daten |
57 | // OCR2A = Poti2/2 + 80; |
57 | // OCR2A = Poti2/2 + 80; |
58 | 58 | ||
59 | } |
59 | } |
60 | else |
60 | else |
61 | { |
61 | { |
62 | if(index < 14) |
62 | if(index < 14) |
63 | { |
63 | { |
Line 64... | Line 64... | ||
64 | if((signal > 250) && (signal < 687)) |
64 | if((signal > 250) && (signal < 687) ) |
65 | { |
65 | { |