uvosled changes
This commit is contained in:
@ -98,8 +98,8 @@ void Cameras::trigger()
|
||||
for(auto& camera : cameras_)
|
||||
camera->cam()->trigger();
|
||||
|
||||
if(led_ && !free_)
|
||||
uvosled_capture(led_, lighting_.mask, lighting_.brightness, exposrueTime_*1.5, exposrueTime_*0.25);
|
||||
/*if(led_ && !free_)
|
||||
uvosled_capture(led_, lighting_.mask, lighting_.brightness, exposrueTime_*1.5, exposrueTime_*0.25);*/
|
||||
}
|
||||
|
||||
bool Cameras::start()
|
||||
@ -111,8 +111,8 @@ bool Cameras::start()
|
||||
ret = false;
|
||||
}
|
||||
|
||||
if(free_ && led_)
|
||||
uvosled_set_current(led_, lighting_.mask, lighting_.brightness);
|
||||
/*if(free_ && led_)
|
||||
uvosled_set_current(led_, lighting_.mask, lighting_.brightness);*/
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
@ -89,8 +89,6 @@ int main(int argc, char *argv[])
|
||||
sleep(10);
|
||||
}
|
||||
|
||||
uvosledRet = -1;
|
||||
|
||||
Cameras cameras(uvosledRet < 0 ? nullptr : &led);
|
||||
cameras.setFree(false);
|
||||
ImagePipeline pipe(&cameras);
|
||||
@ -111,7 +109,7 @@ int main(int argc, char *argv[])
|
||||
|
||||
QObject::connect(&w, &MainWindow::sigEditProfiles, [&cameras, &w](){showProfileDialog(&cameras); w.refreshProfiles();});
|
||||
QObject::connect(&pipe, &ImagePipeline::sigResult, w.mainImageViewer(), &CvImageViewer::setImage, Qt::QueuedConnection);
|
||||
QObject::connect(&pipe, &ImagePipeline::sigResult, [&w](){w->statusMsg("idle");});
|
||||
QObject::connect(&pipe, &ImagePipeline::sigResult, [&w](){w.statusMsg("idle");});
|
||||
QObject::connect(&pipe, &ImagePipeline::sigInvalidProfile, &w, &MainWindow::profileInconpatible);
|
||||
|
||||
QObject::connect(&w, &MainWindow::sigProfile, [&pipe](QString name)
|
||||
|
Reference in New Issue
Block a user