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()