From d580349f63bfb63aed0ad9e26c3256257ac0acd2 Mon Sep 17 00:00:00 2001 From: KulikEgor Date: Tue, 3 Nov 2020 15:03:00 +0300 Subject: [PATCH] =?UTF-8?q?-=D0=9F=D0=BE=D0=BC=D0=B5=D0=BD=D1=8F=D0=BB=20?= =?UTF-8?q?=D0=BC=D0=B0=D1=81=D0=BA=D1=83=20=D0=B4=D0=BB=D1=8F=20=D0=BF?= =?UTF-8?q?=D0=B5=D1=80=D0=B5=D0=BC=D0=B5=D0=BD=D0=BD=D0=BE=D0=B9=20"?= =?UTF-8?q?=D1=82=D0=B8=D0=BF=20=D0=B4=D0=B0=D1=82=D1=87=D0=B8=D0=BA=D0=B0?= =?UTF-8?q?=20=D0=BF=D0=BE=D0=BB=D0=BE=D0=B6=D0=B5=D0=BD=D0=B8=D1=8F",=20?= =?UTF-8?q?=D1=81=D0=BE=20=D1=81=D1=82=D0=B0=D1=80=D0=BE=D0=B9=20=D0=BD?= =?UTF-8?q?=D0=B5=20=D1=80=D0=B0=D0=B1=D0=BE=D1=82=D0=B0=D0=B5=D1=82=20SSI?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit -Удалил присвоенный Debug -Базовую температуру поменял на 20° --- Vinclude/build.h | 2 +- Vsrc/SM_Sys.c | 2 +- Vsrc/V_adc.c | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Vinclude/build.h b/Vinclude/build.h index 89aff8b..2808571 100644 --- a/Vinclude/build.h +++ b/Vinclude/build.h @@ -31,7 +31,7 @@ #define CANTORS_ENA // USB CANopen -#define CANTOUSB_ENA +//#define CANTOUSB_ENA //! ( sm_ctrl) //! diff --git a/Vsrc/SM_Sys.c b/Vsrc/SM_Sys.c index 94fd746..948c5a1 100644 --- a/Vsrc/SM_Sys.c +++ b/Vsrc/SM_Sys.c @@ -205,7 +205,7 @@ void SM_Sys_Fast_Calc(TSM_Sys *p) { global_time.calc(&global_time); cur_par.calc(&cur_par); // - drv_params.sens_type = drv_params.sens_type & 3; // , + drv_params.sens_type = drv_params.sens_type & 7; // , #ifdef WATCHDOG_ON // Watchdog.feed();// , diff --git a/Vsrc/V_adc.c b/Vsrc/V_adc.c index ba03820..97bb3a6 100644 --- a/Vsrc/V_adc.c +++ b/Vsrc/V_adc.c @@ -104,7 +104,7 @@ void AdcDrv_fast_calc(TAdcDrv *p) { p->IB_temp = ADC->SEQ[0].SFIFO; p->Udc_temp = ADC->SEQ[0].SFIFO; p->T_temp = ADC->SEQ[0].SFIFO; - Debug1 = p->T_temp; + // FIFO , - ( ) while (ADC->SEQ[0].SFLOAD) trash = ADC->SEQ[0].SFIFO; @@ -174,7 +174,7 @@ void AdcDrv_slow_calc(TAdcDrv *p) { p->IbGainNom = _IQ16mpy(p->Imeas_b_gain, drv_params._1_I_nom) << 1; p->IcGainNom = _IQ16mpy(p->Imeas_c_gain, drv_params._1_I_nom) << 1; p->UdcGainNom = _IQ16mpy(p->Udc_meas_gain, drv_params._1_Udc_nom) << 4; - p->TGainNom = _IQ16mpy(p->T_meas_gain,_IQ(1.0/100)) << 6; + p->TGainNom = _IQ16mpy(p->T_meas_gain,_IQ(0.05)) << 4; } //!