From: kyz Date: Tue, 25 Jul 2023 02:56:04 +0000 (+0800) Subject: 代码说明文档修改,移除中间件测试程序内容 X-Git-Url: http://kyz.pub/gitweb/?a=commitdiff_plain;h=f714c9f3dce6f8e3b995879fc3a392fa2d7ad90f;p=yn%2Falarmmonitor.git 代码说明文档修改,移除中间件测试程序内容 --- 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