Subversion Repositories FlightCtrl

Rev

Rev 687 | Go to most recent revision | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 687 Rev 688
1
/*#######################################################################################
-
 
2
Derkodieren eines RC Summen Signals
-
 
3
#######################################################################################*/
-
 
4
 
-
 
5
#ifndef _RC_H
1
#ifndef _RC_H
6
#define _RC_H
2
#define _RC_H
7
 
-
 
8
#if defined (__AVR_ATmega32__)
-
 
9
#define TIMER_TEILER        CK64
-
 
10
#define TIMER_RELOAD_VALUE  250
-
 
11
#endif
-
 
12
 
-
 
13
#if defined (__AVR_ATmega644__)
-
 
14
 
-
 
15
#define TIMER_RELOAD_VALUE  250
-
 
16
 
-
 
17
#endif
-
 
18
 
-
 
19
#if defined (__AVR_ATmega644P__)
-
 
20
 
-
 
21
#define TIMER_RELOAD_VALUE  250
-
 
22
 
-
 
23
#endif
-
 
24
 
-
 
25
#define GAS   PPM_in[2]
-
 
26
 
3
 
27
#include <inttypes.h>
4
#include <inttypes.h>
28
 
5
 
29
extern void rc_sum_init (void);
6
extern void rc_sum_init (void);
30
 
7
 
31
extern volatile int16_t PPM_in[11];
8
extern volatile int16_t PPM_in[11];             // the RC-Signal
32
extern volatile int16_t PPM_diff[11];  // das diffenzierte Stick-Signal
9
extern volatile int16_t PPM_diff[11];   // the differentiated RC-Signal
-
 
10
extern volatile uint8_t NewPpmData;
33
extern volatile uint8_t NewPpmData;
11
extern volatile uint8_t SenderOkay;     // signal level indicator
34
 
12
 
35
#endif //_RC_H
13
#endif //_RC_H
36
 
14