def METHOD_NAME(control):
    """
    Reads the RC channel and smooths value
    """
    prev = control.value
    control.channel.pause()
    for i in range(0, len(control.channel)):
        val = control.channel[i]
        # prevent ranges outside of control space
        if(val < 1000 or val > 2000):
            continue
        # set new value
        control.value = (control.value + val) / 2
    # if DEBUG:
    #     print("%f\t%s (%i): %i (%i)" % (time.monotonic(), control.name, len(
    #         control.channel), control.value, servo_duty_cycle(control.value)))
    control.channel.clear()
    control.channel.resume()