Tool/software:
I am trying to building a water meter sensor using the MSP30FR6047EVM and USS library. And I need to extract the temperature calculation result from USS_Algorithms.
I did the following updated in USS_userConfig.h :
- Set USS_ALG_ENABLE_ESTIMATE_TEMPERATURE to true
- Set USS_ACOUSTIC_LENGTH to 70 (as the distance of the transducers is about 70mm)
- Set USS_VOLUME_SCALE_FACTOR to 2.5484e7f
As an initial debugging step, I print out all USS_Algorithms_Results over the UART, here are the output
AbsTof_UPS 5.4188e-05
AbsTof_DNS 5.4188e-05
DToF -2.9502e-11
VOL_FR -5.1807e+00
TEMP 3.6301e+02
I don’t know why the temperature value is 363 degrees
I checked that there is no error (our message code output is: USS_message_code = 122) for USS_runAlgorithms