From 02f55f588e8bf38da609f9b1f4fcb576e74b9074 Mon Sep 17 00:00:00 2001
From: zhyinch <zhyinch@gmail.com>
Date: 星期三, 25 五月 2022 17:53:11 +0800
Subject: [PATCH] 2.50 配合之江实验室,修改CH3

---
 Src/application/dw_app.h |   11 ++++++++++-
 1 files changed, 10 insertions(+), 1 deletions(-)

diff --git a/Src/application/dw_app.h b/Src/application/dw_app.h
index 4109f9b..747c125 100644
--- a/Src/application/dw_app.h
+++ b/Src/application/dw_app.h
@@ -13,7 +13,7 @@
 
 //#define NEWBOARD
 //#define TAG_OUTPUT
-#define MAX_RFPOWER   60
+#define MAX_RFPOWER   67
 #define DEFAULT_RFPOWER   30
 #define REGISTER_FREQUENCY 1
 #define HEX_OUTPUT
@@ -33,6 +33,8 @@
 #define MIN_ANCHOR_NUM 2
 #define SYNC_SEQ_IDX    			5
 #define REMOTEPARA_LEN 18
+#define OUTRANGE_RESTARTTIMES 5
+
 
 #define POLL     							0x01
 #define RESPONSE 							0x02
@@ -43,6 +45,9 @@
 #define NEAR_RESPONSE   			0x07
 #define NEAR_FINAL   					0x08
 #define SPOLL     							0x09
+#define DISCOVERPOLL     				    0x0A
+#define DISCOVERRESPONSE     				    0x0B
+#define DISCOVERFINAL     				    0x0C
 
 #define REG_POLL   						0x10   //
 #define REG_RESPONSE   				0x11   //
@@ -65,6 +70,9 @@
 #define MOTORSTATE_INDEX      19
 #define NR_NEARSWITCH_DISTANCE 20
 #define REMOTEPARA_INDEX      22
+#define MAXRANGE_DISTANCE       22
+#define ANC_SIGNALPOWER         24
+
 //Final
 #define TAGCONFIGSUCCESS_INDEX 7
 #define FINAL_MSG_POLL_TX_TS_IDX 10
@@ -127,4 +135,5 @@
 
 extern void TagDistClear(void);
 void Dw1000_App_Init(void);
+void DelayOneSlot(void);
 #endif

--
Gitblit v1.9.3