I've not understood really well your question very well but, when I used the srf04 (something similar), I remember Itit was pretty easy.
You
You get an impulse with the lenghtlength proportional to the first reflection.
Be Be careful when you send the second impulse, it should be when the various previous reflections are estinguishedextinguished.