From f714c9f3dce6f8e3b995879fc3a392fa2d7ad90f Mon Sep 17 00:00:00 2001 From: kyz Date: Tue, 25 Jul 2023 10:56:04 +0800 Subject: [PATCH] =?utf8?q?=E4=BB=A3=E7=A0=81=E8=AF=B4=E6=98=8E=E6=96=87?= =?utf8?q?=E6=A1=A3=E4=BF=AE=E6=94=B9=EF=BC=8C=E7=A7=BB=E9=99=A4=E4=B8=AD?= =?utf8?q?=E9=97=B4=E4=BB=B6=E6=B5=8B=E8=AF=95=E7=A8=8B=E5=BA=8F=E5=86=85?= =?utf8?q?=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- ...43\347\240\201\350\257\264\346\230\216.md" | 52 ++----------------- 1 file changed, 4 insertions(+), 48 deletions(-) diff --git "a/TW8013\344\273\243\347\240\201\350\257\264\346\230\216.md" "b/TW8013\344\273\243\347\240\201\350\257\264\346\230\216.md" index 970eddf..c4e026d 100755 --- "a/TW8013\344\273\243\347\240\201\350\257\264\346\230\216.md" +++ "b/TW8013\344\273\243\347\240\201\350\257\264\346\230\216.md" @@ -1922,52 +1922,8 @@ sdk/buildroot/board/rockchip/rv1126_rv1109/fs-overlay-tw8013/etc/watchdogd.conf # script = "/path/to/alt-reboot-action.sh" } ``` +### 3.6 配置文件说明文档 + TW8013中间件接口定义.md -### 3.6 中间件测试程序说明 - -#### tof测试程序 - -/app/test/tof_test - -./tof_test运行测试程序,先是检测范围在1000mm内,90s后将距离修改为1500mm,120s关闭tof。 - -``` -...... - -void cb_test(tof_info_t* info) -{ - if(info->status == TOF_ANYBODY){ - printf("== 在 %d mm处有人存在 ==\n",info->distance); - printf("\n"); - } - else if(info->status == TOF_NOBODY){ - printf("== 在测量距离 %d mm内无人 ==\n",main_ctl->default_range); - printf("\n"); - } - else{ - printf("== 在 %d mm处存在障碍物 ==\n",info->distance); - printf("\n"); - } -} - -int main() -{ - main_ctl = mg_tof_open(1000); - mg_tof_event_register(main_ctl,cb_test); - sleep(90); - printf("===== 测量距离已修改为 1500 mm =====\n"); - Distance_parameter_correction(main_ctl,1500); - while(1) - { - sleep(120); - break; - } - printf("===== TOF已关闭 =====\n"); - mg_tof_close(main_ctl); - return 0; -} -``` - -### 3.7 配置文件说明文档 - -### 3.8 中间件接口文档 +### 3.7 中间件接口文档 + TW8013软件说明.md \ No newline at end of file -- 2.34.1