From 9efee43c0c6142f4b38696c441e9eced9fe90ebf Mon Sep 17 00:00:00 2001 From: zhyinch <zhyinch@gmail.com> Date: 星期四, 18 七月 2019 18:27:37 +0800 Subject: [PATCH] 基站测距第一版 --- 源码/核心板/Src/application/dw_app.h | 28 +++++++++++++++++++++++++++- 1 files changed, 27 insertions(+), 1 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 54106ff..b9a4427 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" @@ -3,13 +3,39 @@ #define __DW_APP_H__ #include "stm32f10x.h" +#include "filters.h" +#include "ADC.h" +#define WORK_MODE_TAG +//#define WORK_MODE_ANCHOR + +//#define NEWBOARD +//#define TAG_OUTPUT +#define HEX_OUTPUT + +#define REPOET_ANC_NUM 1 +#define REPOET_ANC_NUM_MIN 1 +#define TOTAL_TAG_NUM 200 +#define TAG_ID_START 0// 0x00980000 #define TAG_NUM_IN_SYS 256 #define DFT_RAND_DLY_TIM_MS 1 +extern u32 dev_id; +extern u8 anchor_type; +extern volatile uint32_t time32_incr; +extern u16 tag_recv_timer; +extern double dist_cm; +extern uint32_t g_UWB_com_interval; +extern float dis_after_filter; +extern LPFilter_Frac* p_Dis_Filter; //测距用的低通滤波器 +extern u8 usart_send[25]; 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 uint8_t g_flag_Taggetdist[256]; +extern void TagDistClear(void); +void Dw1000_App_Init(void); #endif -- Gitblit v1.9.3