Rev 689 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 689 | Rev 690 | ||
---|---|---|---|
Line 11... | Line 11... | ||
11 | #include <stdlib.h> |
11 | #include <stdlib.h> |
12 | #include <avr/io.h> |
12 | #include <avr/io.h> |
13 | #include <avr/interrupt.h> |
13 | #include <avr/interrupt.h> |
Line 14... | Line 14... | ||
14 | 14 | ||
15 | #include "rc.h" |
- | |
Line 16... | Line 15... | ||
16 | #include "fc.h" |
15 | #include "rc.h" |
17 | 16 | ||
18 | volatile int16_t PPM_in[11]; |
17 | volatile int16_t PPM_in[11]; |
19 | volatile int16_t PPM_diff[11]; |
18 | volatile int16_t PPM_diff[11]; |
Line 60... | Line 59... | ||
60 | // Disable Output Compare A & B Match Interrupts (bit: OCIE1B=0, OICIE1A=0) |
59 | // Disable Output Compare A & B Match Interrupts (bit: OCIE1B=0, OICIE1A=0) |
61 | // Disable Overflow Interrupt (bit: TOIE1=0) |
60 | // Disable Overflow Interrupt (bit: TOIE1=0) |
62 | TIMSK1 &= ~((1<<OCIE1B)|(1<<OCIE1A)|(1<<TOIE1)); |
61 | TIMSK1 &= ~((1<<OCIE1B)|(1<<OCIE1A)|(1<<TOIE1)); |
63 | TIMSK1 |= (1<<ICIE1); |
62 | TIMSK1 |= (1<<ICIE1); |
Line 64... | Line -... | ||
64 | - | ||
65 | AdNeutralGier = 0; |
- | |
66 | AdNeutralRoll = 0; |
- | |
67 | AdNeutralNick = 0; |
- | |
68 | 63 | ||
69 | SREG = sreg; |
64 | SREG = sreg; |
Line 70... | Line 65... | ||
70 | } |
65 | } |