From 7ad00426f064d87547231c16cf8562356d9aab8f Mon Sep 17 00:00:00 2001 From: kyz Date: Wed, 4 Dec 2024 17:32:35 +0800 Subject: [PATCH] =?utf8?q?=E6=B3=A2=E5=BD=A2=E6=95=B0=E6=8D=AE=E4=BF=AE?= =?utf8?q?=E6=94=B9=E4=B8=BA=E4=B8=8A=E6=8A=A532bit=E6=95=B0=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- App/Include/app_spis.h | 2 +- App/Src/app_spis.c | 4 ++-- Bsp/Src/xTarget.c | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/App/Include/app_spis.h b/App/Include/app_spis.h index 233266e..79b0d10 100644 --- a/App/Include/app_spis.h +++ b/App/Include/app_spis.h @@ -234,7 +234,7 @@ typedef struct{ typedef struct{ u32 id; u32 st; - u16 WaveBuf[3][2][128]; //UA/IA UB/IB UC/IC * 128 + u32 WaveBuf[3][2][128]; //UA/IA UB/IB UC/IC * 128 u16 crc; }regs_adcwave_t; #pragma pack() diff --git a/App/Src/app_spis.c b/App/Src/app_spis.c index bf3a8e3..541bf03 100644 --- a/App/Src/app_spis.c +++ b/App/Src/app_spis.c @@ -193,13 +193,13 @@ void update_adcwave_data( void ) } #endif -#if 1 +#if 0 for( int phs=0; phs<3; phs++){ for( int ui=0; ui<2; ui++ ){ for( int n=0; n<128; n++ ){ //regs_adcwave.WaveBuf[phs][ui][n] = AdcWaveData.WaveBuf[phs][ui][n]; //24bitÊý¾ÝÈ¡¸ß16bitÊý¾Ý½ÚÊ¡¿Õ¼ä - regs_adcwave.WaveBuf[phs][ui][n] = (AdcWaveData.WaveBuf[phs][ui][n] >>4 )&0xFFFF; + regs_adcwave.WaveBuf[phs][ui][n] = (AdcWaveData.WaveBuf[phs][ui][n] >>8 )&0xFFFF; } } } diff --git a/Bsp/Src/xTarget.c b/Bsp/Src/xTarget.c index 7401862..f378e47 100644 --- a/Bsp/Src/xTarget.c +++ b/Bsp/Src/xTarget.c @@ -608,7 +608,7 @@ void fnSAG_Init(void) { sSAG_cfg_TypeDef SAGcfg; SAGcfg.IE =DISABLE; - SAGcfg.Ku=0.4; + SAGcfg.Ku=0.5; SAGcfg.nTime =10; fnSAG0_init(SAGcfg); } @@ -632,7 +632,7 @@ void fnSWELL_Init( void ) { sOverU_cfg_TypeDef OverUcfg; OverUcfg.IE =DISABLE; - OverUcfg.Ku = 1.2; + OverUcfg.Ku = 1.5; OverUcfg.nTime = 10; fnOverU_init( OverUcfg ); } -- 2.34.1