From 2379ef3d42b8a5d8155c44c98f3d8d3eb5f70576 Mon Sep 17 00:00:00 2001 From: "WIN-20230613SRA\\Administrator" <871066422@qq.com> Date: Tue, 7 Jul 2026 08:28:22 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=94=B5=E5=8E=8B=E7=94=B5?= =?UTF-8?q?=E6=B5=81=E8=B0=83=E6=95=B4=E7=AD=96=E7=95=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hv_main.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/hv_main.py b/hv_main.py index 1e9822e..08b584c 100644 --- a/hv_main.py +++ b/hv_main.py @@ -478,7 +478,7 @@ def filamentControlFast(hiAim): averageBufferPut('hvLoadMa', hiMaValue) return - if hiMaValue > hiAim: + if hiMaValue > hiAim + 0.1: tmpDuty = tmpDuty - 2 else: aimDuty = config['var']['filament']['normalPwm'] @@ -543,7 +543,7 @@ def hvControlFast(hvAim): tmpDuty = pwmDuty - if hiMaValue > config['hv']['mA']: + if hiMaValue > config['hv']['mA'] + 0.1: return if hvKvValue < config['hv']['kV'] - 3: tmpDuty = tmpDuty + 2 @@ -883,9 +883,9 @@ def main(): tempVal = tempAdc.average() hvTempValue = adc2temp(tempVal) * 100 - print(tempVal, hvTempValue) + # print(tempVal, hvTempValue) - print('\n') + # print('\n') #gc.collect() #gc.dump_info() mb_reg_update()