I am working on a project with PixelSensor API. My goal is to get the access to the World Center sensor and get the frame, and to change the exposure time of the sensor.
While I activate the two streams and assign foreach one a renderer quad, I get it right.
However, when I check the boxes for the parameters “Use Custom Properties” and “Use Manual Exposure Settings”, I have an error at the start of the project.
I don’t understand where does the problem come from since I use only one camera (World Center) in the current project, since I reused the example from the official documentation and since the configuration of the streams work in the others cases with the “Use Custom Properties” or “Use Manual Exposure Settings” boxes unchecked.
I have also checked in the script that the stream 0 have the capability ManualExposureTime, and when I comment just the part of the ManualExposureTime’s configData’s value assignation the streams configuration work as well.
Could anyone help me to understand why do I get an error and what have I to do to correct my project?
I run my project over only one scene, I’ve checked only one sensor is fetched : World Center, and recently verified with only the stream 0. Here too, I have the same issue.
Since yesterday I’ve compared my script to the example to check the differences and I saw that the big changes are that :
I don’t include the AnalogGain parameter : no associated variable and case not called in the streams configuration (deleted because won’t be used in this project)
The start of the script and the pixelSensor initilization is from the Default configuration model (du to an early project’s version) , from the method Start() to the method TryInitializeSensor()
The method Start() is replaced by a method StartFromParent(), called by another script (for a future feature)
Could at least one of these points be the cause of the problem?
Important update : I just tested to readd the AnalogGain parameter even if it won’t be modified while running the application. The absence of AnalogGain seems to have been the issue, since now the streams are well configured.
The application is now running without issue, the streams are well configured and when I manually change the ManualExposureTime value it affects as wanted the frame captured by the sensor.
Thanks to helping me anyway. Without noticing the case of two simultaneous streams, I wouldn’t have notice that AnalogGain was missing - sometimes when you’re too much focused on things you miss the details. I hope at least this topics will help future readers.