修改电压电流调整策略

This commit is contained in:
WIN-20230613SRA\Administrator
2026-07-07 08:28:22 +08:00
parent d44140d999
commit 2379ef3d42
+4 -4
View File
@@ -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()