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.
I understand that the gain value is calculated using the following formula:
agcTempGainValue -= (float) ((float)20*log10f((float)maxMeasurementValue));
Since this formula is executed each time, the term (float) ((float)20*log10f((float)maxMeasurementValue) is added or subtracted from the previous agcTempGainValue. Therefore, it seems that even if the maximum amplitude of the input signal is stable, the gain value (agcTempGainValue) does not stabilize. Please let me know if there is any misunderstanding in my understanding.
Regards,