From bf236e83ebac73ddc076ddee4c541da9d469b95e Mon Sep 17 00:00:00 2001 From: chen <15335560115@163.com> Date: 星期五, 11 七月 2025 18:15:13 +0800 Subject: [PATCH] 解决角度抖动距离远抖动过大问题,加入pa开启代码。 --- user_config.h | 30 ++++++++++++++++++++++++++---- 1 files changed, 26 insertions(+), 4 deletions(-) diff --git a/user_config.h b/user_config.h index 198835c..fd3653f 100644 --- a/user_config.h +++ b/user_config.h @@ -152,7 +152,24 @@ /** Maximum PHY payload length */ #define PHY_PAYLOAD_LEN_MAX (127) +/** Enable PDoA 3D */ +#define PDOA_3D_EN (1) +/** Enable AoA */ +#define AOA_EN (0) +/** Enable Post-process filter */ +#define FILTER_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 @@ -175,20 +192,25 @@ //#define MK_SS_TWR_DW_RESP -#define INPUT_5V_Pin IO_PIN_11 +#define INPUT_5V_Pin IO_PIN_2 #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 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