Hi there,
I just wanted to report that I am seeing problems setting the gain range and frame duration range via libargus on latest L4T 32.3.1. I have verified this by replacing libnvargus.so, libnvargus_socketclient.so, and libnvargus_socketserver.so libraries with the previous versions from L4T 32.2.3.
Here is the relevant code (part of a loop setting up a multi-sensor array):
min_gain = 4.0;
max_gain = 4.0;
Range<float> gain_range(min_gain, max_gain);
ARGUS_PRODUCER_PRINT("Setting camera %d gain range to %.2f,%.2f\n",
i, gain_range.min(), gain_range.max());
if(iSourceSettings->setGainRange(gain_range) != STATUS_OK)
ORIGINATE_ERROR("Failed to set gain range for camera %d", i);
gain_range = iSourceSettings->getGainRange();
ARGUS_PRODUCER_PRINT("Camera %d gain range set to %.2f,%.2f\n",
i, gain_range.min(), gain_range.max());
Range<uint64_t> frame_duration_range(33333334,33333334);
ARGUS_PRODUCER_PRINT("Setting camera %d frame duration range to %ld,%ld\n",
i, frame_duration_range.min(), frame_duration_range.max());
if(iSourceSettings->setFrameDurationRange(frame_duration_range) != STATUS_OK)
ORIGINATE_ERROR("Failed to set frame duration range for camera %d", i);
Here is the output with latest libraries:
ARGUS PRODUCER: Setting camera 0 gain range to 4.00,4.00
ARGUS PRODUCER: Camera 0 gain range set to 0.00,68306424311101110878208.00
ARGUS PRODUCER: Setting camera 0 frame duration range to 33333334,33333334
ARGUS PRODUCER: Camera 0 frame duration range set to 3893494768,549354340640
Here is the output when I replace the argus libraries with the ones from 32.2.3 and restart nvargus-daemon:
ARGUS PRODUCER: Setting camera 0 gain range to 4.00,4.00
ARGUS PRODUCER: Camera 0 gain range set to 4.00,4.00
ARGUS PRODUCER: Setting camera 0 frame duration range to 33333334,33333334
ARGUS PRODUCER: Camera 0 frame duration range set to 33333334,33333334
My camera control code is broken as a result of new libraries, so I am staying with previous version of libraries for the time being.
Edit: This code is running on AGX Xavier