2026年6月4日 commit

This commit is contained in:
2026-06-04 14:08:28 +08:00
parent dd64ec1252
commit 571b8e01d3
71 changed files with 2780 additions and 2656 deletions
+16 -6
View File
@@ -78,6 +78,15 @@ SysPara::SysPara(void):
#endif
}
SysPara *SysPara::ins()
{
static SysPara* ins = nullptr;
if (ins == nullptr) {
ins = new SysPara();
}
return ins;
}
void SysPara::loadParaFromFile(){
QFile file(PARA_FILE_PATH);
QFile DeviceCodefile(DeviceCode_FILE_PATH);
@@ -110,8 +119,9 @@ void SysPara::loadParaFromFile(){
para.gearPumpSpeedAlarm = 1500;
// 将flagOfReclaimPumEnable强制设置为0。该参数影响的是压力控制算法,但现在已经不使用 byons@2026年5月12日
if(para.gearPumpEnable && para.flagOfReclaimPumEnable)
para.flagOfReclaimPumEnable = false;
if(!para.flagOfReclaimPumEnable)
para.flagOfReclaimPumEnable = true;
if (DeviceCodefile.isOpen()) {
DeviceCodefile.close();
}
@@ -158,7 +168,7 @@ void SysPara::loadDefaultPara(){
para.synPulseNumPerMm = 8;// 同步器参数 脉冲/毫米
para.OuputPulseCol = 0;//桂林客户,精准控制输出脉冲的位置,精确到打印的列数
para.gearPumpEnable = 1;
para.flagOfReclaimPumEnable = 0;
para.flagOfReclaimPumEnable = false;
para.oscillatorVoltage = 30;//晶振电压
para.highVoltageLevel = 100;//高压包容差
@@ -977,7 +987,7 @@ void SysPara::loadVolteParaFromFile(PRINT_MODE mode)
file.read(volteStruct, copy_len);
file.close();
}
else if (ret == QMessageBox::Cancel){
else if (ret == QMessageBox::Cancel) {
file.close();
}
}
@@ -988,8 +998,8 @@ void SysPara::loadVolteParaFromFile(PRINT_MODE mode)
}
}
}
else{
qDebug()<<"There is no Volte Para File.";
else {
qDebug() << "There is no Volte Para File.";
LogInfo::setRunStatusText(QString("There is no Volte Para File."));
}
}