Skip to content
Snippets Groups Projects
Commit a10c6308 authored by Sebastian Hahta's avatar Sebastian Hahta
Browse files

hack for emulated pylon devices

parent ec79a109
No related branches found
No related tags found
1 merge request!316Resolves #343 GUI and Frame Refactor
Pipeline #28149 passed
...@@ -147,9 +147,12 @@ void PylonDevice::_configureCamera(CBaslerUniversalInstantCamera *cam) { ...@@ -147,9 +147,12 @@ void PylonDevice::_configureCamera(CBaslerUniversalInstantCamera *cam) {
LOG(WARNING) << "Could not change pixel format"; LOG(WARNING) << "Could not change pixel format";
} }
if (cam->GetDeviceInfo().GetModelName() != "Emulation") {
// Emulated device throws exception with these
cam->ExposureTime.SetValue(24000.0f); // Exposure time in microseconds cam->ExposureTime.SetValue(24000.0f); // Exposure time in microseconds
cam->LightSourcePreset.SetValue(Basler_UniversalCameraParams::LightSourcePreset_Tungsten2800K); // White balance option cam->LightSourcePreset.SetValue(Basler_UniversalCameraParams::LightSourcePreset_Tungsten2800K); // White balance option
} }
}
bool PylonDevice::grab() { bool PylonDevice::grab() {
if (!isReady()) return false; if (!isReady()) return false;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment