Browse Source

APP_Framework/Framework/:add filter module in knowing framework,and complete coding recently

pull/9/head
chunyexixiaoyu 11 months ago
parent
commit
e9af33ca78
  1. 1
      APP_Framework/Framework/knowing/Kconfig
  2. 34
      APP_Framework/Framework/knowing/filter/Kconfig
  3. 14
      APP_Framework/Framework/knowing/filter/SConscript
  4. 3
      APP_Framework/Framework/knowing/filter/high_pass_filter/Kconfig
  5. 10
      APP_Framework/Framework/knowing/filter/high_pass_filter/SConscript
  6. 1
      APP_Framework/Framework/knowing/filter/high_pass_filter/one_order_rc_hpf.c
  7. 5
      APP_Framework/Framework/knowing/filter/high_pass_filter/one_order_rc_hpf.h
  8. 3
      APP_Framework/Framework/knowing/filter/kalman_filter/Kconfig
  9. 10
      APP_Framework/Framework/knowing/filter/kalman_filter/SConscript
  10. 1
      APP_Framework/Framework/knowing/filter/kalman_filter/one_order_kalman.c
  11. 4
      APP_Framework/Framework/knowing/filter/kalman_filter/one_order_kalman.h
  12. 3
      APP_Framework/Framework/knowing/filter/low_pass_filter/Kconfig
  13. 10
      APP_Framework/Framework/knowing/filter/low_pass_filter/SConscript
  14. 1
      APP_Framework/Framework/knowing/filter/low_pass_filter/one_order_rc_lpf.c
  15. 5
      APP_Framework/Framework/knowing/filter/low_pass_filter/one_order_rc_lpf.h
  16. 8
      APP_Framework/Framework/knowing/filter/mean_filter/Kconfig
  17. 12
      APP_Framework/Framework/knowing/filter/mean_filter/SConscript
  18. 1
      APP_Framework/Framework/knowing/filter/mean_filter/ordinary_mean_filter.c
  19. 4
      APP_Framework/Framework/knowing/filter/mean_filter/ordinary_mean_filter.h
  20. 1
      APP_Framework/Framework/knowing/filter/mean_filter/sliding_window_mean_filter.c
  21. 5
      APP_Framework/Framework/knowing/filter/mean_filter/sliding_window_mean_filter.h

1
APP_Framework/Framework/knowing/Kconfig

@ -5,4 +5,5 @@ menuconfig SUPPORT_KNOWING_FRAMEWORK
if SUPPORT_KNOWING_FRAMEWORK
source "$APP_DIR/Framework/knowing/tensorflow-lite/Kconfig"
source "$APP_DIR/Framework/knowing/kpu-postprocessing/Kconfig"
source "$APP_DIR/Framework/knowing/filter/Kconfig"
endif

34
APP_Framework/Framework/knowing/filter/Kconfig

@ -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

14
APP_Framework/Framework/knowing/filter/SConscript

@ -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')

3
APP_Framework/Framework/knowing/filter/high_pass_filter/Kconfig

@ -0,0 +1,3 @@
config ONE_ORDER_RC_HIGH_PASS_FILTER
bool "one order rc hpf"
default n

10
APP_Framework/Framework/knowing/filter/high_pass_filter/SConscript

@ -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')

1
APP_Framework/Framework/knowing/filter/high_pass_filter/one_order_rc_hpf.c

@ -0,0 +1 @@
#include<one_order_rc_hpf.h>

5
APP_Framework/Framework/knowing/filter/high_pass_filter/one_order_rc_hpf.h

@ -0,0 +1,5 @@
#ifndef _ONE_ORDER_RC_HPF_H
#define _ONE_ORDER_RC_HPF_H
#endif

3
APP_Framework/Framework/knowing/filter/kalman_filter/Kconfig

@ -0,0 +1,3 @@
config ONE_ORDER_KALMAN_FILTER
bool "one order kalman filter"
default n

10
APP_Framework/Framework/knowing/filter/kalman_filter/SConscript

@ -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')

1
APP_Framework/Framework/knowing/filter/kalman_filter/one_order_kalman.c

@ -0,0 +1 @@
#include <one_order_kalman.h>

4
APP_Framework/Framework/knowing/filter/kalman_filter/one_order_kalman.h

@ -0,0 +1,4 @@
#ifndef _ONE_ORDER_KALMAN_H_
#define _ONE_ORDER_KALMAN_H_
#endif

3
APP_Framework/Framework/knowing/filter/low_pass_filter/Kconfig

@ -0,0 +1,3 @@
config ONE_ORDER_RC_LOW_PASS_FILTER
bool "one order rc lpf"
default n

10
APP_Framework/Framework/knowing/filter/low_pass_filter/SConscript

@ -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')

1
APP_Framework/Framework/knowing/filter/low_pass_filter/one_order_rc_lpf.c

@ -0,0 +1 @@
#include<one_order_rc_lpf.h>

5
APP_Framework/Framework/knowing/filter/low_pass_filter/one_order_rc_lpf.h

@ -0,0 +1,5 @@
#ifndef _ONE_ORDER_RC_LPF_H
#define _ONE_ORDER_RC_LPF_H
#endif

8
APP_Framework/Framework/knowing/filter/mean_filter/Kconfig

@ -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

12
APP_Framework/Framework/knowing/filter/mean_filter/SConscript

@ -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')

1
APP_Framework/Framework/knowing/filter/mean_filter/ordinary_mean_filter.c

@ -0,0 +1 @@
#include <ordinary_mean_filter.h>

4
APP_Framework/Framework/knowing/filter/mean_filter/ordinary_mean_filter.h

@ -0,0 +1,4 @@
#ifndef _ORDINARY_MEAN_FILTER_H
#define _ORDINARY_MEAN_FILTER_H
#endif

1
APP_Framework/Framework/knowing/filter/mean_filter/sliding_window_mean_filter.c

@ -0,0 +1 @@
#include <sliding_window_mean_filter.h>

5
APP_Framework/Framework/knowing/filter/mean_filter/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…
Cancel
Save