Subversion Repositories FlightCtrl

Rev

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

Rev 1179 Rev 1180
Line 1... Line 1...
1
#ifndef _RC_H
1
#ifndef _RC_H
2
#define _RC_H
2
#define _RC_H
Line 3... Line 3...
3
 
3
 
Line -... Line 4...
-
 
4
#include <inttypes.h>
-
 
5
 
-
 
6
#define J3HIGH    PORTD |= (1<<PORTD5)
-
 
7
#define J3LOW     PORTD &= ~(1<<PORTD5)
-
 
8
#define J3TOGGLE  PORTD ^= (1<<PORTD5)
-
 
9
 
-
 
10
#define J4HIGH    PORTD |= (1<<PORTD4)
-
 
11
#define J4LOW     PORTD &= ~(1<<PORTD4)
-
 
12
#define J4TOGGLE  PORTD ^= (1<<PORTD4)
-
 
13
 
-
 
14
#define J5HIGH    PORTD |= (1<<PORTD3)
-
 
15
#define J5LOW     PORTD &= ~(1<<PORTD3)
-
 
16
#define J5TOGGLE  PORTD ^= (1<<PORTD3)
4
#include <inttypes.h>
17
 
5
 
18
 
6
extern void RC_Init (void);
19
extern void RC_Init (void);
7
extern volatile int16_t PPM_in[15];             // the RC-Signal
20
extern volatile int16_t PPM_in[15];             // the RC-Signal
8
extern volatile int16_t PPM_diff[15];   // the differentiated RC-Signal
21
extern volatile int16_t PPM_diff[15];   // the differentiated RC-Signal
-
 
22
extern volatile uint8_t NewPpmData;     // 0 indicates a new recieved PPM Frame
-
 
23
extern volatile int16_t RC_Quality;     // rc signal quality indicator (0 to 200)
9
extern volatile uint8_t NewPpmData;     // 0 indicates a new recieved PPM Frame
24