提交 633fb457 authored 作者: blu's avatar blu

evmlmotion fps auto adapting

上级 8d2e26d8
......@@ -501,15 +501,18 @@ private:
// this->schmittriStatus = 0;
// }
static long long called = 0;
static int factor = 0;
called++;
int factor = 0;
bool proc = true;
if(this->pps != 0) {
if(this->pps != 0 && factor == 0) {
// lock the value
factor = int(int(this->pps) / this->detPara.fpsProc); // regulator to 0 if it was set inresonably high
}
if(factor != 0 ){
if(called % factor == 0) {
proc = true;
factor = 0; // reset it open to change
}else{
proc = false;
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论