迁移最新的压力调节算法

This commit is contained in:
2026-08-25 11:05:13 +08:00
parent b3b8a40f77
commit c2ecabffc9
2 changed files with 258 additions and 56 deletions
+11 -1
View File
@@ -132,6 +132,16 @@ private:
bool pushButtonStartFlag;
unsigned char rWarnViscoReady;
//压力控制相关状态变量
bool m_rampDone = false; // 软启动完成标志
int m_adjSkip = 0; // 节拍计数(闭环500ms周期)
int m_lastAvgPressure = 0; // 上次平均压力(微分项用)
int m_pressureBuf[20] = {}; // 压力滑动平均缓冲(20点=2s)
int m_bufIdx = 0; // 滑动平均写入索引
int m_bufValidCount = 0; // 缓冲区有效数据点数(0~20)
bool m_lastReclaimMode = false; // 上次 flagOfReclaimPumEnable 状态
bool m_lastByHand = false; // 上次 isPumpValveControledByHand 状态
};
#endif // INKJETPRINTER_H
#endif // INKJETPRINTER_H