Subversion Repositories FlightCtrl

Rev

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

Rev 2118 Rev 2132
Line 2... Line 2...
2
#define _RC_H
2
#define _RC_H
Line 3... Line 3...
3
 
3
 
4
#include <inttypes.h>
4
#include <inttypes.h>
Line 5... Line -...
5
#include "configuration.h"
-
 
6
 
-
 
7
// Number of cycles a command must be repeated before commit.
-
 
8
#define COMMAND_TIMER 200
5
#include "configuration.h"
9
 
6
 
10
extern void RC_Init(void);
7
extern void RC_Init(void);
11
// the RC-Signal. todo: Not export any more.
8
// the RC-Signal. todo: Not export any more.
12
extern volatile int16_t PPM_in[MAX_CHANNELS];
9
extern volatile int16_t PPM_in[MAX_CHANNELS];
Line 20... Line 17...
20
#define CH_THROTTLE         2
17
#define CH_THROTTLE         2
21
#define CH_RUDDER       3
18
#define CH_RUDDER       3
22
#define CH_MODESWITCH   4
19
#define CH_MODESWITCH   4
23
#define CH_POTS         4
20
#define CH_POTS         4
Line -... Line 21...
-
 
21
 
-
 
22
// Number of cycles a command must be repeated before commit.
-
 
23
#define COMMAND_TIMER 200
-
 
24
#define COMMAND_CHANNEL_HORIZONTAL CH_AILERONS
24
 
25
 
25
// void RC_periodicTask(void);
26
// void RC_periodicTask(void);
26
void RC_periodicTaskAndPRYT(int16_t* PRYT);
27
void RC_periodicTaskAndPRYT(int16_t* PRYT);
27
uint8_t RC_getArgument(void);
28
uint8_t RC_getArgument(void);
28
uint8_t RC_getCommand(void);
29
uint8_t RC_getCommand(void);
29
int16_t RC_getVariable(uint8_t varNum);
30
int16_t RC_getVariable(uint8_t varNum);
30
void RC_calibrate(void);
31
void RC_calibrate(void);
31
uint8_t RC_getSignalQuality(void);
32
uint8_t RC_getSignalQuality(void);
32
uint8_t RC_getLooping(uint8_t looping);
-
 
33
#ifdef USE_MK3MAG
33
int16_t RC_getZeroThrottle(void);
34
uint8_t RC_testCompassCalState(void);
34
void RC_setZeroTrim(void);
35
#endif
35