Subversion Repositories FlightCtrl

Rev

Rev 1994 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1994 Rev 1995
Line 1... Line 1...
1
/*#######################################################################################
1
/*#######################################################################################
2
Derkodieren eines RC Summen Signals
2
Derkodieren eines RC Summen Signals
3
#######################################################################################*/
3
#######################################################################################*/
4
 
4
 
5
#ifndef _RC_H
5
#ifndef _RC_H
6
#define _RC_H
6
#define _RC_H
7
 
7
 
8
#if defined (__AVR_ATmega32__)
8
#if defined (__AVR_ATmega32__)
9
#define TIMER_TEILER        CK64
9
#define TIMER_TEILER        CK64
10
#define TIMER_RELOAD_VALUE  250
10
#define TIMER_RELOAD_VALUE  250
11
#endif
11
#endif
12
 
12
 
13
#if defined (__AVR_ATmega644__)
13
#if defined (__AVR_ATmega644__)
14
#define TIMER_RELOAD_VALUE  250
14
#define TIMER_RELOAD_VALUE  250
15
#endif
15
#endif
16
 
16
 
17
#if defined (__AVR_ATmega644P__)
17
#if defined (__AVR_ATmega644P__)
18
#define TIMER_RELOAD_VALUE  250
18
#define TIMER_RELOAD_VALUE  250
19
#endif
19
#endif
20
 
20
 
21
#define GAS   PPM_in[2]
21
#define GAS   PPM_in[2]
22
 
22
 
23
 
23
 
24
extern void rc_sum_init (void);
24
extern void rc_sum_init (void);
25
 
25
 
26
extern volatile int PPM_in[26];
26
extern volatile int PPM_in[26];
27
extern volatile int PPM_diff[26];  // das diffenzierte Stick-Signal
27
extern volatile int PPM_diff[26];  // das diffenzierte Stick-Signal
28
extern volatile unsigned char NewPpmData;
28
extern volatile unsigned char NewPpmData;
29
extern volatile char Channels,tmpChannels;
29
extern volatile char Channels,tmpChannels;
30
extern unsigned int PPM_Neutral;
30
extern unsigned int PPM_Neutral;
31
 
31
 
32
#endif //_RC_H
32
#endif //_RC_H