6月29日崩溃前缓存

This commit is contained in:
2026-06-30 08:21:08 +08:00
parent ef2eecf972
commit 14d97b9bcb
5 changed files with 974 additions and 78 deletions
+11
View File
@@ -204,4 +204,15 @@ public slots:
public:
bool eventFilter(QObject *watched, QEvent *event);
private:
// 压力调节算法状态变量
bool m_rampDone = false; // pressureAdj 软启动完成标志
int m_adjSkip = 0; // pressureAdj 节拍计数(软启动/超时复用)
int m_lastPressure = 0; // pressureAdj 上次采样压力(稳定检测用)
int m_stableCount = 0; // pressureAdj 压力连续稳定计数
int m_pressureBuf[10] = {}; // pressureAdj 压力滑动平均缓冲(10点=1s)
int m_bufIdx = 0; // pressureAdj 滑动平均写入索引
bool m_lastByHand = false; // 上一帧手动控制标志(边沿检测用)
bool m_lastReclaimMode = false; // 上一帧回收泵模式(边沿检测用)
};