forked from xuos/xiuos
21 changed files with 136 additions and 0 deletions
@ -0,0 +1,34 @@ |
|||
menuconfig USING_KNOWING_FILTER |
|||
bool "filters " |
|||
default n |
|||
|
|||
if USING_KNOWING_FILTER |
|||
menuconfig USING_MEAN_FILTER |
|||
bool "Using mean filter" |
|||
default n |
|||
if USING_MEAN_FILTER |
|||
source "$APP_DIR/Framework/knowing/filter/mean_filter/Kconfig" |
|||
endif |
|||
|
|||
menuconfig USING_KALMAN_FILTER |
|||
bool "Using kalman filter" |
|||
default n |
|||
if USING_KALMAN_FILTER |
|||
source "$APP_DIR/Framework/knowing/filter/kalman_filter/Kconfig" |
|||
endif |
|||
|
|||
menuconfig USING_LOW_PASS_FILTER |
|||
bool "Using low pass filter" |
|||
default n |
|||
if USING_LOW_PASS_FILTER |
|||
source "$APP_DIR/Framework/knowing/filter/low_pass_filter/Kconfig" |
|||
endif |
|||
|
|||
menuconfig USING_HIGH_PASS_FILTER |
|||
bool "Using high pass filter" |
|||
default n |
|||
if USING_HIGH_PASS_FILTER |
|||
source "$APP_DIR/Framework/knowing/filter/high_pass_filter/Kconfig" |
|||
endif |
|||
|
|||
endif |
@ -0,0 +1,14 @@ |
|||
import os |
|||
Import('RTT_ROOT') |
|||
from building import * |
|||
|
|||
cwd = GetCurrentDir() |
|||
objs = [] |
|||
list = os.listdir(cwd) |
|||
|
|||
for d in list: |
|||
path = os.path.join(cwd, d) |
|||
if os.path.isfile(os.path.join(path, 'SConscript')): |
|||
objs = objs + SConscript(os.path.join(path, 'SConscript')) |
|||
|
|||
Return('objs') |
@ -0,0 +1,3 @@ |
|||
config ONE_ORDER_RC_HIGH_PASS_FILTER |
|||
bool "one order rc hpf" |
|||
default n |
@ -0,0 +1,10 @@ |
|||
from building import * |
|||
import os |
|||
|
|||
cwd = GetCurrentDir() |
|||
src = [] |
|||
if GetDepend(['ONE_ORDER_RC_HIGH_PASS_FILTER']): |
|||
src += ['one_order_rc_hpf.c'] |
|||
group = DefineGroup('high_pass_filter', src, depend = ['USING_HIGH_PASS_FILTER'], CPPPATH = [cwd]) |
|||
|
|||
Return('group') |
@ -0,0 +1 @@ |
|||
#include<one_order_rc_hpf.h> |
@ -0,0 +1,5 @@ |
|||
#ifndef _ONE_ORDER_RC_HPF_H |
|||
#define _ONE_ORDER_RC_HPF_H |
|||
|
|||
|
|||
#endif |
@ -0,0 +1,3 @@ |
|||
config ONE_ORDER_KALMAN_FILTER |
|||
bool "one order kalman filter" |
|||
default n |
@ -0,0 +1,10 @@ |
|||
from building import * |
|||
import os |
|||
|
|||
cwd = GetCurrentDir() |
|||
src = [] |
|||
if GetDepend(['ONE_ORDER_KALMAN_FILTER']): |
|||
src += ['one_order_kalman.c'] |
|||
group = DefineGroup('kalman filter', src, depend = ['USING_KALMAN_FILTER'], CPPPATH = [cwd]) |
|||
|
|||
Return('group') |
@ -0,0 +1 @@ |
|||
#include <one_order_kalman.h> |
@ -0,0 +1,4 @@ |
|||
#ifndef _ONE_ORDER_KALMAN_H_ |
|||
#define _ONE_ORDER_KALMAN_H_ |
|||
|
|||
#endif |
@ -0,0 +1,3 @@ |
|||
config ONE_ORDER_RC_LOW_PASS_FILTER |
|||
bool "one order rc lpf" |
|||
default n |
@ -0,0 +1,10 @@ |
|||
from building import * |
|||
import os |
|||
|
|||
cwd = GetCurrentDir() |
|||
src = [] |
|||
if GetDepend(['ONE_ORDER_RC_LOW_PASS_FILTER']): |
|||
src += ['one_order_rc_lpf.c'] |
|||
group = DefineGroup('low pass filter', src, depend = ['USING_LOW_PASS_FILTER'], CPPPATH = [cwd]) |
|||
|
|||
Return('group') |
@ -0,0 +1 @@ |
|||
#include<one_order_rc_lpf.h> |
@ -0,0 +1,5 @@ |
|||
#ifndef _ONE_ORDER_RC_LPF_H |
|||
#define _ONE_ORDER_RC_LPF_H |
|||
|
|||
|
|||
#endif |
@ -0,0 +1,8 @@ |
|||
config SLIDING_WINDOW_MEAN_FILTER |
|||
bool "sliding window mean filter" |
|||
select LIB_USING_QUEUE |
|||
default n |
|||
|
|||
config ORDINARY_MEAN_FILTER |
|||
bool "ordinary mean filter" |
|||
default n |
@ -0,0 +1,12 @@ |
|||
from building import * |
|||
import os |
|||
|
|||
cwd = GetCurrentDir() |
|||
src = [] |
|||
if GetDepend(['SLIDING_WINDOW_MEAN_FILTER']): |
|||
src += ['sliding_window_mean_filter.c'] |
|||
if GetDepend(['ORDINARY_MEAN_FILTER']): |
|||
src += ['ordinary_mean_filter.c'] |
|||
group = DefineGroup('mean_filter', src, depend = ['USING_MEAN_FILTER'], CPPPATH = [cwd]) |
|||
|
|||
Return('group') |
@ -0,0 +1 @@ |
|||
#include <ordinary_mean_filter.h> |
@ -0,0 +1,4 @@ |
|||
#ifndef _ORDINARY_MEAN_FILTER_H |
|||
#define _ORDINARY_MEAN_FILTER_H |
|||
|
|||
#endif |
@ -0,0 +1 @@ |
|||
#include <sliding_window_mean_filter.h> |
@ -0,0 +1,5 @@ |
|||
#ifndef _SLIDING_WINDOW_MEAN_FILTER_H |
|||
#define _SLIDING_WINDOW_MEAN_FILTER_H |
|||
#include <queue.h> |
|||
|
|||
#endif |
Loading…
Reference in new issue