Subversion Repositories FlightCtrl

Rev

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

Rev 2098 Rev 2189
Line 3... Line 3...
3
 
3
 
4
#include <inttypes.h>
4
#include <inttypes.h>
Line 5... Line 5...
5
#include "configuration.h"
5
#include "configuration.h"
6
 
6
 
Line 7... Line 7...
7
// Number of cycles a command must be repeated before commit.
7
// Number of cycles a command must be repeated before commit.
8
#define COMMAND_TIMER 200
8
#define COMMAND_TIMER 100
9
 
9
 
10
extern void RC_Init(void);
10
extern void RC_Init(void);
11
// the RC-Signal. todo: Not export any more.
11
// the RC-Signal. todo: Not export any more.
12
extern volatile int16_t PPM_in[MAX_CHANNELS];
12
extern volatile int16_t PPM_in[MAX_CONTROLCHANNELS];
Line 13... Line 13...
13
// extern volatile int16_t PPM_diff[MAX_CHANNELS];      // the differentiated RC-Signal. Should that be exported??
13
// extern volatile int16_t PPM_diff[MAX_CHANNELS];      // the differentiated RC-Signal. Should that be exported??
14
extern volatile uint8_t NewPpmData; // 0 indicates a new recieved PPM Frame
14
extern volatile uint8_t NewPpmData; // 0 indicates a new recieved PPM Frame
15
extern volatile uint8_t RCQuality;  // rc signal quality indicator (0 to 200)
15
extern volatile uint8_t RCQuality;  // rc signal quality indicator (0 to 200)
16
 
16
 
17
// defines for lookup staticParams.ChannelAssignment
17
// defines for lookup staticParams.ChannelAssignment
18
#define CH_PITCH        0
18
#define CH_PITCH        0
19
#define CH_ROLL             1
19
#define CH_ROLL             1
Line 20... Line 20...
20
#define CH_THROTTLE         2
20
#define CH_THROTTLE         2
21
#define CH_YAW              3
21
#define CH_YAW              3
22
#define CH_POTS         4
22
#define CH_VARIABLES    4
23
#define POT_OFFSET      120
23
#define VARIABLES_OFFSET 120
24
 
24
 
25
// void RC_periodicTask(void);
25
// void RC_periodicTask(void);
26
void RC_periodicTaskAndPRTY(int16_t* PRTY);
26
void RC_periodicTaskAndRPTY(int16_t* RPTY);