Miroslav Lichvar
2013-10-18 16:40:19 UTC
I've reworked the patch to keep moving average and add a new filter
interface similar to the servo interface to allow selecting between
different filters, as Richard suggested. The default is set to moving
median with 10 samples. There is also an option to set the filter
length.
Miroslav Lichvar (3):
Add modular filter interface.
Add median filter.
Add options to configure delay filter.
clock.c | 17 +++++----
config.c | 33 +++++++++++++++++
config.h | 3 ++
default.cfg | 2 +
ds.h | 3 ++
filter.c | 49 +++++++++++++++++++++++++
filter.h | 64 ++++++++++++++++++++++++++++++++
filter_private.h | 33 +++++++++++++++++
gPTP.cfg | 2 +
makefile | 6 +--
mave.c | 48 ++++++++++++++----------
mave.h | 12 +-----
mmedian.c | 110 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
mmedian.h | 27 ++++++++++++++
port.c | 15 ++++----
ptp4l.8 | 9 +++++
ptp4l.c | 2 +
17 files changed, 388 insertions(+), 47 deletions(-)
create mode 100644 filter.c
create mode 100644 filter.h
create mode 100644 filter_private.h
create mode 100644 mmedian.c
create mode 100644 mmedian.h
interface similar to the servo interface to allow selecting between
different filters, as Richard suggested. The default is set to moving
median with 10 samples. There is also an option to set the filter
length.
Miroslav Lichvar (3):
Add modular filter interface.
Add median filter.
Add options to configure delay filter.
clock.c | 17 +++++----
config.c | 33 +++++++++++++++++
config.h | 3 ++
default.cfg | 2 +
ds.h | 3 ++
filter.c | 49 +++++++++++++++++++++++++
filter.h | 64 ++++++++++++++++++++++++++++++++
filter_private.h | 33 +++++++++++++++++
gPTP.cfg | 2 +
makefile | 6 +--
mave.c | 48 ++++++++++++++----------
mave.h | 12 +-----
mmedian.c | 110 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
mmedian.h | 27 ++++++++++++++
port.c | 15 ++++----
ptp4l.8 | 9 +++++
ptp4l.c | 2 +
17 files changed, 388 insertions(+), 47 deletions(-)
create mode 100644 filter.c
create mode 100644 filter.h
create mode 100644 filter_private.h
create mode 100644 mmedian.c
create mode 100644 mmedian.h
--
1.8.3.1
1.8.3.1