Changeset 307 in flair-src for trunk/lib/FlairSensorActuator/src
- Timestamp:
- Mar 8, 2019, 10:30:25 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/FlairSensorActuator/src/V4LCamera.cpp
r169 r307 104 104 // fps counter 105 105 fpsCounter++; 106 if (fpsCounter == 100) { 106 if (GetTime() > (fpsPrev + 5 * (Time)1000000000)) { 107 // toute les 5 secondes 107 108 fpsNow = GetTime(); 108 109 fps->SetText("fps: %.1f", 109 110 fpsCounter / ((float)(fpsNow - fpsPrev) / 1000000000.)); 110 111 fpsCounter = 0; 111 112 fpsPrev = fpsNow; 112 } 113 113 } 114 114 115 // cam properties 115 116 if (gain->ValueChanged() == true && autogain->Value() == false)
Note:
See TracChangeset
for help on using the changeset viewer.