various bug fixes around free trigger mode, display strings and image pipe robustness
This commit is contained in:
parent
86ec50575b
commit
d5af9adec9
12 changed files with 85 additions and 25 deletions
|
|
@ -111,7 +111,7 @@ bool Cameras::start()
|
|||
ret = false;
|
||||
}
|
||||
|
||||
if(free_)
|
||||
if(free_ && led_)
|
||||
uvosled_set_current(led_, lighting_.mask, lighting_.brightness);
|
||||
|
||||
return ret;
|
||||
|
|
@ -146,9 +146,11 @@ bool Cameras::setFree(bool free)
|
|||
{
|
||||
if(!camera->cam()->setAcquisitionMode(free ? cam::Camera::MODE_FREE : cam::Camera::MODE_SINGLE))
|
||||
{
|
||||
qDebug()<<"failed to set single on camera"<<camera->id();
|
||||
qDebug()<<"failed to set acquisition mode on camera"<<camera->id();
|
||||
ret = false;
|
||||
}
|
||||
if(ret)
|
||||
camera->cam()->setTriggerMode(free ? cam::Camera::TRIGGER_FREE : cam::Camera::TRIGGER_SOFTWARE);
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
|
@ -173,13 +175,14 @@ void Cameras::imageRecived(Camera::Image img)
|
|||
{
|
||||
if(!disable_)
|
||||
{
|
||||
qDebug()<<"free"<<free_;
|
||||
bool allreadyUpdated = false;
|
||||
for(auto& image : images_)
|
||||
{
|
||||
if(image.cameraId == img.cameraId)
|
||||
{
|
||||
allreadyUpdated = true;
|
||||
break;;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue