help me understading code([rcCommand])

Post Reply
jang
Posts: 2
Joined: Fri Sep 04, 2015 1:18 am

help me understading code([rcCommand])

Post by jang »

Code: Select all

// ******************
// rc functions
// ******************
#define MINCHECK 1100
#define MAXCHECK 1900

volatile int16_t failsafeCnt = 0;
static int16_t failsafeEvents = 0;
static int16_t rcData[8];    // interval [1000;2000]
static int16_t rcCommand[4]; // interval [1000;2000] for THROTTLE and [-500;+500] for ROLL/PITCH/YAW
static uint8_t rcRate8;
static uint8_t rcExpo8;
static int16_t lookupRX[7]; //  lookup table for expo & RC rate
volatile uint8_t rcFrameComplete; //for serial rc receiver Spektrum


I have been trying to understand multiwii source to make my own drone.
pretty tricky for me.. anyway... it s gonna be a long way to go.

as far as i know "rcCommand" is kind of signal taken from the radio.. right?

Then for example if i throttle up , then the radio sends signals to the receiver,

then the receiver takes the signal and then it comes through the pin of the FC board .

So i think that in the source, there must be something to connect between the pin that recieves the signal and rcCommand[throttle]

but i cant find it..anybody help me~

Post Reply