Tool/software:
I have a question regarding the software program for calibrating gain values. I understand that it is executed within the function USS_message_code USS_calibrateSignalGain(USS_SW_Library_configuration *config) in the file ussSwLibCalibration.c.
The calibration of the gain value is performed by executing the while loop for the number of iterations defined by "agcLoopMaxIterations". Since "pUPS = USS_getUPSPtr(config);" and "pDNS = USS_getDNSPtr(config);" are executed only once before the while loop, doesn't this mean that the "maxMeasurementValue" calculated within the while loop will always be the same value? Please let me know if there is any misunderstanding in my understanding.
Regards,