修改电压电流调整策略
This commit is contained in:
+4
-4
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user