Subversion Repositories FlightCtrl

Rev

Rev 885 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 885 Rev 886
Line 1... Line -...
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
Line 7... Line -...
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
//#define TIMER_TEILER        CK64
-
 
15
#define TIMER_RELOAD_VALUE  250
-
 
16
//#define TIMER_TEILER        CK256                 // bei 20MHz
-
 
17
//#define TIMER_RELOAD_VALUE  -78                                       // bei 20MHz
-
 
18
#endif
-
 
19
 
3
 
20
#define GAS   PPM_in[2]
-
 
21
 
-
 
22
 
-
 
23
extern void rc_sum_init (void);
-
 
24
 
-
 
25
extern volatile int PPM_in[11];
-
 
26
extern volatile int PPM_diff[11];  // das diffenzierte Stick-Signal
-
 
Line -... Line 4...
-
 
4
#include <inttypes.h>
-
 
5
 
-
 
6
extern void RC_Init (void);
-
 
7
extern volatile int16_t PPM_in[15];             // the RC-Signal
-
 
8
extern volatile int16_t PPM_diff[15];   // the differentiated RC-Signal
27
extern volatile unsigned char NewPpmData;
9
extern volatile uint8_t NewPpmData;     // 0 indicates a new recieved PPM Frame