From e54c70b2c45ca652ddd2808a95a057cb797eab58 Mon Sep 17 00:00:00 2001 From: chen <15335560115@163.com> Date: 星期六, 05 七月 2025 14:16:11 +0800 Subject: [PATCH] square天线NVM初始化问题解决调到和官方效果一致,初步移植完STS并能稳定一对一测距板本 --- user_config.h | 33 ++++++++++++++++++++++++++++++--- 1 files changed, 30 insertions(+), 3 deletions(-) diff --git a/user_config.h b/user_config.h index 261a0f5..019fa90 100644 --- a/user_config.h +++ b/user_config.h @@ -152,8 +152,25 @@ /** Maximum PHY payload length */ #define PHY_PAYLOAD_LEN_MAX (127) +/** Enable PDoA 3D */ +#define PDOA_3D_EN (1) +/** Enable AoA */ +#define AOA_EN (0) + +#if PDOA_3D_EN +/// Antenna pattern + #define ANT_PATTERN (ANT_PATTERN_SQUARE) +//#define ANT_PATTERN (ANT_PATTERN_LINEAR) +/// Antenna layout, @ref enum ANT_LAYOUT_T +#define ANT_LAYOUT (ANT_LAYOUT_HORIZONTAL) +#elif AOA_EN +/// Antenna pattern +#define ANT_PATTERN (ANT_PATTERN_LINEAR) +#endif //#define BOXING +//#define BOXING +#define LED_PIN IO_PIN_4 /* =========================================================================================================================== */ /* ================ Simple Selection ================ */ /* =========================================================================================================================== */ @@ -173,15 +190,25 @@ //#define MK_SS_TWR_DW_RESP -#define INPUT_5V_Pin IO_PIN_11 +#define INPUT_5V_Pin IO_PIN_2 -#define RSSI_EN (1) +#define RSSI_EN (0) /** channel number: 2, 5, 9 */ -#define UWB_CH_NUM (9) +#define UWB_CH_NUM (5) /** Velocity of propagation (%) */ #define VP_VAL (100) #define RANGING_CORR (0) #define XTAL_AUTO_TUNE_EN (0) + +//#define STS_MODE +//#define MK_MODE +#define SLEEP_COUNT 1000 +//#define DW1000 +#define WSF_EN +//#define STS_MODE +#define STS_MODE_SQUARE +/** Antenna ports combination, @ref macro definition RX_xPORTS_ANT_xxx */ +#define RX_ANT_PORTS_COMBINATION (RX_4PORTS_ANT_3_0_1_2) /* =========================================================================================================================== */ /* ================ End ================ */ /* =========================================================================================================================== */ -- Gitblit v1.9.3