From 26a3a95b25f10e92061d1cf1ef2b46503134718e Mon Sep 17 00:00:00 2001
From: zhyinch <zhyinch@gmail.com>
Date: 星期日, 01 十二月 2019 19:02:52 +0800
Subject: [PATCH] 40米不该、 软件修改

---
 源码/核心板/Src/application/dw_app.h |   15 +++++++++------
 1 files changed, 9 insertions(+), 6 deletions(-)

diff --git "a/\346\272\220\347\240\201/\346\240\270\345\277\203\346\235\277/Src/application/dw_app.h" "b/\346\272\220\347\240\201/\346\240\270\345\277\203\346\235\277/Src/application/dw_app.h"
index b9a4427..bda82cb 100644
--- "a/\346\272\220\347\240\201/\346\240\270\345\277\203\346\235\277/Src/application/dw_app.h"
+++ "b/\346\272\220\347\240\201/\346\240\270\345\277\203\346\235\277/Src/application/dw_app.h"
@@ -2,11 +2,12 @@
 #ifndef __DW_APP_H__
 #define __DW_APP_H__
 
+#include <string.h>
 #include "stm32f10x.h"
 #include "filters.h"
 #include "ADC.h"
-#define WORK_MODE_TAG
-//#define WORK_MODE_ANCHOR
+//#define WORK_MODE_TAG
+#define WORK_MODE_ANCHOR
 
 //#define NEWBOARD
 //#define TAG_OUTPUT
@@ -14,12 +15,12 @@
 
 #define REPOET_ANC_NUM 1
 #define REPOET_ANC_NUM_MIN 1
-#define TOTAL_TAG_NUM  200
 #define TAG_ID_START 		0// 0x00980000
-
+#define GROUP_TAG_NUM 2
 #define TAG_NUM_IN_SYS				256
 #define DFT_RAND_DLY_TIM_MS			1
-
+extern u16 poll_timer,tag_timer;
+extern int8_t tag_delaytime;
 extern u32 dev_id;
 extern u8 anchor_type;
 extern volatile uint32_t time32_incr;
@@ -30,11 +31,13 @@
 extern LPFilter_Frac* p_Dis_Filter;		//测距用的低通滤波器
 extern u8 usart_send[25];
 
+void IdleTask(void);
+uint16_t Checksum_u16(uint8_t* pdata, uint32_t len);
 void Dw1000_Init(void);
 void Tag_App(void);
 void Anchor_App(void);
 void tag_sleep_configuraion(void);
-extern uint16_t g_Tagdist[TOTAL_TAG_NUM];
+extern int32_t g_Tagdist[TAG_NUM_IN_SYS];
 extern uint8_t g_flag_Taggetdist[256];
 extern void TagDistClear(void);
 void Dw1000_App_Init(void);

--
Gitblit v1.9.3