since we have more and more functions , i need some more channels
Is it possible to read more than 8 PPM Channels with the Mwii Code ?
Here is the Part for read the PPM Channels (I think )
Code: Select all
#if defined(SERIAL_SUM_PPM)
void rxInt() {
uint16_t now,diff;
static uint16_t last = 0;
static uint8_t chan = 0;
now = micros();
diff = now - last;
last = now;
if(diff>3000) chan = 0;
else {
//Only if the signal is between these values it is valid, otherwise the failsafe counter should move up
rcValue[chan] = diff;
#if defined(FAILSAFE)if(900<diff && diff<2200 && chan<8 ) {
if(failsafeCnt > 20) failsafeCnt -= 20; else failsafeCnt = 0; // clear FailSafe counter - added by MIS //incompatible to quadroppm
#endif
}
chan++;
}
}
#endif
so if i right , there is only one line wich is need to change :
Code: Select all
if(900<diff && diff<2200 && chan<8 ) {
to for example for 10 channels :
Code: Select all
if(900<diff && diff<2200 && chan<10 ) {
am i right ?
bg