From 768ce43ddc4bd349f7dba772cf478915d550420c Mon Sep 17 00:00:00 2001 From: WXK <287788329@qq.com> Date: 星期五, 26 一月 2024 10:25:27 +0800 Subject: [PATCH] 版本v1.4 修复不上传电量 --- Src/application/dw_app.c | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Src/application/dw_app.c b/Src/application/dw_app.c index 475b788..7086725 100644 --- a/Src/application/dw_app.c +++ b/Src/application/dw_app.c @@ -78,16 +78,16 @@ NEARPOLL, } tag_state=NEARPOLL; dwt_config_t config = { - 2, /* Channel number. */ + 5, /* Channel number. */ DWT_PRF_64M, /* Pulse repetition frequency. */ - DWT_PLEN_1024, /* Preamble length. */ + DWT_PLEN_128, /* Preamble length. */ DWT_PAC8, /* Preamble acquisition chunk size. Used in RX only. */ 9, /* TX preamble code. Used in TX only. */ 9, /* RX preamble code. Used in RX only. */ 1, /* Use non-standard SFD (Boolean) */ DWT_BR_6M8, /* Data rate. */ DWT_PHRMODE_STD, /* PHY header mode. */ - (1025 + 8 - 8) /* SFD timeout (preamble length + 1 + SFD length - PAC size). Used in RX only. */ + (129 + 8 - 8) /* SFD timeout (preamble length + 1 + SFD length - PAC size). Used in RX only. */ }; static uint8_t tx_poll_msg[20] = {0}; static uint8_t tx_sync_msg[14] = {0}; @@ -184,7 +184,7 @@ /* Configure DW1000. See NOTE 6 below. */ dwt_configure(&config);//配置DW1000 - SetNLOSNTMSettings(); + // SetNLOSNTMSettings(); /* Apply default antenna delay value. See NOTE 1 below. */ -- Gitblit v1.9.3