SLAA889A March 2019 – July 2021 MSP430FR6041 , MSP430FR6043 , MSP430FR60431 , MSP430FR6045 , MSP430FR6047 , MSP430FR60471
Let iK denote the index from the previous capture (the procedure to get this during acquisition was described in Section 2.2.1.1) for previous burst j–1 and let j denote the current capture. Now, the algorithm has the following steps:
The upstream absolute time of flight is thus given by Equation 13.
In this equation, Tproop is the propagation time that is specified using #define USS_ACOUSTIC_LENGTH
in USS_userConfig.h and is maintained in
USS_Meter_Configuration.acousticLength as part of the application meter configuration. It corresponds to the approximate propagation time for ultrasound in the given meter. Typically Tproop is 35 to 40 µs. Toffset
corresponds to the number of cycles to back track from the lobe corresponding to the index iK and is a function of the threshold η. In the USS Software Library, Toffset is set to 5 µs and can be modified using the user
configuration #define USS_ALG_ADC_ADDITIONAL_CAP_DLY
. It is maintained in the variable USS_Algorithms_User_Configuration.ADCAdditionalCaptureDelay.
The calculations of acquisition and tracking for the upstream direction are repeated for the downstream direction. The software keeps track of another index iK for the downstream data for each burst j.