Example: for channel 3, the signal at input pin2 =the signal at output pin4.
Problem:Using the code i attached,i can get the desired output signal (same pulse width as input signal)for channel 3 only,but the duty cycle becomes smaller which means the period of PW is longer for output.For channel 1 there is no any output signal .
PCintPort:attachInterrupt(1,calcThrottle,CHANGE);
I also do not understand why the above code use only 1 ":" in order for me to get the wanted output signal.,
PCintPort::attachInterrupt(1,calcRoll,CHANGE);
but here i have to use 2 "::" in order to compile the code successfully.