I am trying to take one inputs from a radio control ie chanel 3, perform some processing on these and output the new

ThrottleMax = previoulsly taught maximum RC signal
ThrottleMin = previoulsly taught minimum RC signal

PulsIn Throtpin, 0, Throttle
pause 10

sPulse = (Throttle - ThrottleMin) * 100 / (ThrottleMax-ThrottleMin)

if some one don this please send some code ..