added code for PPM and conventional receivers.