Skip to content

Commit

Permalink
增加一个新测试项目,模仿一个多旋翼运行
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexHAHA committed Aug 27, 2024
1 parent 99ef267 commit 31c4d2c
Show file tree
Hide file tree
Showing 7 changed files with 29 additions and 0 deletions.
6 changes: 6 additions & 0 deletions apps/utest/test_mc_ctrl/Kconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
menuconfig TEST_MC_CTRL
bool "sim a mc controller"
default n

if TEST_MC_CTRL
endif
1 change: 1 addition & 0 deletions apps/utest/test_mc_ctrl/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
模拟一个多旋翼控制
22 changes: 22 additions & 0 deletions apps/utest/test_mc_ctrl/SConscript
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@

import os
import rtconfig
from building import *

cwd = GetCurrentDir()
group = []


# 添加当前文件夹下的代码
src = Glob("*.c") + Glob("*.cpp")
inc = [cwd]

group += DefineGroup("utest", src, depend = [''], CPPPATH = inc)

for d in os.listdir(cwd):
path = os.path.join(cwd, d)
if os.path.isfile(os.path.join(path, "SConscript")):
# print(os.path.join(d, 'SConscript'))
group += SConscript(os.path.join(d, "SConscript"))

Return("group")
Empty file.
Empty file.
Empty file.
Empty file.

0 comments on commit 31c4d2c

Please sign in to comment.