From: kyz Date: Wed, 4 Dec 2024 09:32:35 +0000 (+0800) Subject: 波形数据修改为上报32bit数据 X-Git-Url: http://kyz.pub/gitweb/?a=commitdiff_plain;h=7ad00426f064d87547231c16cf8562356d9aab8f;p=zd%2Fzd-rn.git 波形数据修改为上报32bit数据 --- 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 ); }