Rev 2248 | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
2248 | - | 1 | //------------------------------------------------------------------------------------------------------------------------------------- |
2 | // rc.c |
||
3 | //------------------------------------------------------------------------------------------------------------------------------------- |
||
4 | |||
5 | #ifndef _RC_H |
||
6 | #define _RC_H |
||
7 | |||
8 | #if defined (__AVR_ATmega644__) |
||
9 | #define TIMER_RELOAD_VALUE 250 |
||
10 | #endif |
||
11 | |||
12 | #if defined (__AVR_ATmega644P__) |
||
13 | #define TIMER_RELOAD_VALUE 250 |
||
14 | #endif |
||
15 | |||
16 | #define GAS PPM_in[2] |
||
17 | |||
18 | extern void rc_sum_init (void); |
||
19 | extern volatile int PPM_in[11]; // das Fernsteuer-Summensignal - decodiert // PPM_in[1] = Gas // PPM_in[2] = Roll // PPM_in[3] = Nick // PPM_in[4] = Gier |
||
20 | extern volatile int PPM_diff[11]; // das diffenzierte Stick-Signal |
||
21 | extern volatile unsigned char NewPpmData; |
||
22 | extern volatile char Channels,tmpChannels; |
||
23 | |||
24 | #endif //_RC_H |
||
25 | //------------------------------------------------------------------------------------------------------------------------------------- |