<div dir="auto">I assume that he waves used are relatively prime, so a three tone system might have a wavelength of 11, 13 and 17 samples. <div><br></div><div>Once you detect the phase of all three tones, you then can uniquely identify the phase over a much longer period of (11*13*17) = 2431 samples. </div><div><br></div><div>Mike<br><br></div></div><div style="line-height:1.5"><br><br>-------- Original message --------<br>From: Eliot Blennerhassett <ewblen@gmail.com><br>Date: Tue, 7 Jul 2020, 11:13 AM<br>To: robin@gilks.org, Christchurch Robotics <chchrobotics@lists.ourshack.com>, Christchurch Robotics <chchrobotics@lists.linuxnut.co.nz><br>Subject: Re: [chbot] Determining delay between two similar signals<br><blockquote>On 5/07/20 5:27 pm, Robin Gilks wrote:<br>> Me again!<br>> <br>> I'm still getting nowhere with my project that will use ultrasonic<br>> transducers to measure wind speed.<br>> <br>> I understand that I need to run a cross correlation between the original<br>> transmitted signal and the delayed received one in order to work out the<br>> delay and hence (with a fixed distance between transducers) the speed of<br>> the wind.<br><br>Late to the party here...<br><br>Code here in mtdm.h and mtdm.cc does multi tone delay measurement.<br><br>https://salsa.debian.org/multimedia-team/zita-alsa-pcmi/-/tree/master/apps<br><br>Sadly it contains zero comments. I can see it uses a mix of 13<br>sinewaves. I'd have to think harder to say how it works, or find the<br>authors original explanation if it exists.<br><br>Origin of the code is here http://kokkinizita.linuxaudio.org/linuxaudio/<br><br>where it claims sub-sample accuracy<br><br>"jack-delay: This is a small command line JACK app you can use to<br>measure the latency of your sound card. It uses a phase measurements on<br>a set of tones to measure the delay from the output to the input.<br>Accuracy is about 1/1000 of a sample.<br><br>_______________________________________________<br>Chchrobotics mailing list Chchrobotics@lists.ourshack.com<br>https://lists.ourshack.com/mailman/listinfo/chchrobotics<br>Mail Archives: http://lists.ourshack.com/pipermail/chchrobotics/<br>Meetings usually 3rd Monday each month. See http://kiwibots.org for venue, directions and dates.<br>When replying, please edit your Subject line to reflect new subjects.</blockquote></div>