From 74560fa32a8f0ea0924a81e85360e79c94ddbf3d Mon Sep 17 00:00:00 2001 From: zhyinch <zhyinch@gmail.com> Date: 星期五, 19 七月 2019 16:38:08 +0800 Subject: [PATCH] 样机发货程序 --- 源码/核心板/Src/application/dw_app.h | 20 +++++++++++++++++--- 1 files changed, 17 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.h" "b/\346\272\220\347\240\201/\346\240\270\345\277\203\346\235\277/Src/application/dw_app.h" index 8bb4567..1ccd853 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" @@ -4,23 +4,37 @@ #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 +#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[256]; +extern uint16_t g_Tagdist[TOTAL_TAG_NUM]; extern uint8_t g_flag_Taggetdist[256]; extern void TagDistClear(void); void Dw1000_App_Init(void); -- Gitblit v1.9.3