Implement the rc value calculation for every pwm input capture channel