Subversion Repositories FlightCtrl

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
1 ingob 1
/*#######################################################################################
2
Derkodieren eines RC Summen Signals
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
 
1171 hbuss 12
#if defined (__AVR_ATmega644P__)
13
#define TIMER_RELOAD_VALUE  250
14
#endif
15
 
1 ingob 16
extern void rc_sum_init (void);
17
 
2340 holgerb 18
extern volatile int PPM_in[26+4];
19
extern volatile int PPM_diff[26+4];  // das diffenzierte Stick-Signal
1 ingob 20
extern volatile unsigned char NewPpmData;
1268 hbuss 21
extern volatile char Channels,tmpChannels;
1933 holgerb 22
extern unsigned int PPM_Neutral;
1 ingob 23
 
2340 holgerb 24
//  0 -> frei bzw. ACT rssi
25
//  1 - 16 -> 1-16
26
// 17 - 28 -> 12 Serial channels
27
// 29 -> WP-Event kanal
28
 
29
#define SERIAL_POTI_START 17
30
#define WP_EVENT_PPM_IN   29
31
 
32
#define FromNC_WP_EventChannel PPM_in[WP_EVENT_PPM_IN] // WP_EVENT-Channel-Value
33
 
1 ingob 34
#endif //_RC_H