Some tweaks to make the RE tools work better on live data (not complete yet), refactored some code.

This commit is contained in:
Collin Kidder
2015-05-24 10:55:55 -04:00
parent 06ee0c9301
commit 77b8b57937
10 changed files with 28 additions and 21 deletions
+3 -6
View File
@@ -350,12 +350,9 @@ void SerialWorker::handleTick()
//qDebug() << "Tick!";
framesPerSec += gotFrames * 1000 / elapsedTime->elapsed() - (framesPerSec / 4);
elapsedTime->restart();
//if (gotFrames > 0)
//{
emit receivedFrames(framesPerSec / 4); //misnamed now. Just notifies of FPS and that frames might exist
canModel->sendBulkRefresh(gotFrames);
gotFrames = 0;
//}
emit frameUpdateTick(framesPerSec / 4, gotFrames); //sends stats to interested parties
canModel->sendBulkRefresh(gotFrames);
gotFrames = 0;
}
//totally shuts down the whole thing