Hi,
This is what popped right into my head when i read your post. I haven't tried it but it compiles. All you need to do is declare Input and Output pins, you'll also need to find a "Samples" value that fits your application. I seem to remember that a normal signal from a radio idles low and pulses high at 50Hz. If i'm wrong and your radio outputs a low signal and idles high, you should change "ActiveState to zero and "LOW OutputPin" to "HIGH OutputPin".
InputPin VAR GPIO.0
OutputPin VAR GPIO.1
ActiveState CON 1
InputSignal VAR WORD
FilteredSignal VAR WORD
Samples CON 20
LOW OutputPin
PULSIN InputPin, ActiveState, FilteredSignal
WHILE 1
PULSIN InputPin, ActiveState, InputSignal
FilteredSignal = FilteredSignal * (Samples - 1)
FilteredSignal = FilteredSignal + InputSignal
FilteredSignal = FilteredSignal / Samples
PULSOUT OutputPin, FilteredSignal
WEND
.... this little program will slow your servo down. Increasing "Samples" will slow thing down even more, 1 will give no delay.
/Ingvar
Bookmarks