• Alessandro Rubini's avatar
    servo: remove wrong and needless average in owd · a6b46a9e
    Alessandro Rubini authored
    The "Use the average between current value and previous one" in the
    "one way delay" calculation was actually a running-average of two
    samples. This happened before the real (and properly implemented)
    running average of the value.  By removing the first one we better
    respect the configured width of the filter.
    
    As a side effect the default (64 samples) is now effective, while earlier
    it behaved like a 128-sample running average. It converges faster.
    Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
    a6b46a9e
servo.c 6.31 KB