From e0168d36f7b3dcc0bf4c4f3ab95485d1e2df7832 Mon Sep 17 00:00:00 2001 From: chen <15335560115@163.com> Date: 星期三, 23 十月 2024 14:12:55 +0800 Subject: [PATCH] 车载标签V1.5版本,加入上电灯逻辑 --- keil/dw_app.c | 9 ++++++--- 1 files changed, 6 insertions(+), 3 deletions(-) diff --git a/keil/dw_app.c b/keil/dw_app.c index 5e355d4..af6d226 100644 --- a/keil/dw_app.c +++ b/keil/dw_app.c @@ -5,6 +5,7 @@ #include "mk_misc.h" #include "mk_uart.h" #include "mk_trace.h" +#include "global_param.h" static float clockOffsetRatio; static double rtd_init, rtd_resp; double tof,distance; @@ -128,10 +129,12 @@ if(distance>-1000&&distance<100000) { - nearbase_distlist[i] = distance+anc_distoffset[i];//offset未加 - } + nearbase_distlist[i] = distance+(int16_t)g_com_map[OFFSET_AS_URT_TAG];//offset未加 + }else{ + nearbase_distlist[i] = 0x2ffff; + } }else{ - nearbase_distlist[i] = 0x1ffff; + //nearbase_distlist[i] = 0x7fff; } } -- Gitblit v1.9.3