Subversion Repositories FlightCtrl

Compare Revisions

Ignore whitespace Rev 2188 → Rev 2189

/branches/dongfang_FC_rewrite/rc.h
5,11 → 5,11
#include "configuration.h"
 
// Number of cycles a command must be repeated before commit.
#define COMMAND_TIMER 200
#define COMMAND_TIMER 100
 
extern void RC_Init(void);
// the RC-Signal. todo: Not export any more.
extern volatile int16_t PPM_in[MAX_CHANNELS];
extern volatile int16_t PPM_in[MAX_CONTROLCHANNELS];
// extern volatile int16_t PPM_diff[MAX_CHANNELS]; // the differentiated RC-Signal. Should that be exported??
extern volatile uint8_t NewPpmData; // 0 indicates a new recieved PPM Frame
extern volatile uint8_t RCQuality; // rc signal quality indicator (0 to 200)
19,11 → 19,11
#define CH_ROLL 1
#define CH_THROTTLE 2
#define CH_YAW 3
#define CH_POTS 4
#define POT_OFFSET 120
#define CH_VARIABLES 4
#define VARIABLES_OFFSET 120
 
// void RC_periodicTask(void);
void RC_periodicTaskAndPRTY(int16_t* PRTY);
void RC_periodicTaskAndRPTY(int16_t* RPTY);
uint8_t RC_getArgument(void);
uint8_t RC_getCommand(void);
int16_t RC_getVariable(uint8_t varNum);