From 46542e0df74f8ba6d1ef7e19a16a371f52afb230 Mon Sep 17 00:00:00 2001
From: zhyinch <zhyinch@gmail.com>
Date: 星期一, 22 十月 2018 16:13:25 +0800
Subject: [PATCH] nothing

---
 源码/核心板/Src/application/dw_app.c |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diff --git "a/\346\272\220\347\240\201/\346\240\270\345\277\203\346\235\277/Src/application/dw_app.c" "b/\346\272\220\347\240\201/\346\240\270\345\277\203\346\235\277/Src/application/dw_app.c"
index b28421b..ce176b3 100644
--- "a/\346\272\220\347\240\201/\346\240\270\345\277\203\346\235\277/Src/application/dw_app.c"
+++ "b/\346\272\220\347\240\201/\346\240\270\345\277\203\346\235\277/Src/application/dw_app.c"
@@ -31,7 +31,7 @@
 #include "global_param.h"
 #include "filters.h"
 #include <stdio.h>
-
+#include "beep.h"
 
 
 /*------------------------------------ Marcos ------------------------------------------*/
@@ -83,7 +83,7 @@
 /*------------------------------------ Variables ------------------------------------------*/
 /* Default communication configuration. We use here EVK1000's default mode (mode 3). */
 static dwt_config_t config = {
-	5,               /* Channel number. */
+	2,               /* Channel number. */
 	DWT_PRF_64M,     /* Pulse repetition frequency. */
 	DWT_PLEN_128,    /* Preamble length. */
 	DWT_PAC8,        /* Preamble acquisition chunk size. Used in RX only. */
@@ -264,7 +264,7 @@
 }
 void Dw1000_App_Init(void)
 {
-//	g_com_map[DEV_ID] = 0x02;
+//g_com_map[DEV_ID] = 0x0b;
 	tx_poll_msg[MESSAGE_TYPE_IDX]=POLL;
 	tx_resp_msg[MESSAGE_TYPE_IDX]=RESPONSE;
 	tx_final_msg[MESSAGE_TYPE_IDX]=FINAL;
@@ -502,6 +502,8 @@
 						g_pairstart=0;
 						g_com_map[PAIR_ID]=tag_id_recv;
 						save_com_map_to_flash();
+						BEEP2_ON;
+						delay_ms(1000);
 						printf("Pair Finish PairID: %d. \r\n",g_com_map[PAIR_ID]);
 					}
 					g_flag_Taggetdist[tag_id_recv]=0;

--
Gitblit v1.9.3