hlp:分段计米部分bug修复,按需求不需要超级密码就可以使用分段计米

This commit is contained in:
kite_lucs
2026-08-28 17:37:05 +08:00
parent f29fafca9e
commit f7b7faab2e
11 changed files with 112 additions and 95 deletions
+5 -4
View File
@@ -882,7 +882,7 @@ void InkJetPrinter::handleStoppedState(int err, bool canSwitch)
void InkJetPrinter::handleStartingState(int err, int actual, int target)
{
const int STARTING_TO_RUNNING_RANGE = 30; // 进入目标±50范围转到运行状态
const float MAX_WORKING_SPEED = 500.0f; // 最大工作转速
const float MAX_WORKING_SPEED = 350.0f; // 最大工作转速
const float START_SPEED_STEP_LARGE = 40.0f;
const float START_SPEED_STEP_MED = 30.0f;
const float START_SPEED_STEP_SMALL = 20.0f;
@@ -1006,7 +1006,7 @@ void InkJetPrinter::handleRunningState(int err, bool canSwitch)
// 限制范围
const float MIN_RUNNING_SPEED = 30.0f; // 最低运行转速(低于此值泵不转)
const float MAX_WORKING_SPEED = 500.0f;
const float MAX_WORKING_SPEED = 350.0f;
if(u < MIN_RUNNING_SPEED) u = MIN_RUNNING_SPEED;
if(u > MAX_WORKING_SPEED) u = MAX_WORKING_SPEED;
@@ -1705,9 +1705,10 @@ void InkJetPrinter::timerHandler(void){
if(sysPara->status.RandomNum>0)
sysPara->devOp->Read_RanddomFromFpga();
#ifdef COUNTER1_BY_GROUP /* 分段计米 */
cnt1GroupCheck();//分段计米
#endif
// cnt1GroupCheck();//分段计米
cntGroupCheck();//分段计米
#endif
QWidget *widget = this->currentWidget();
static bool read_flag = false;