Yes, sorry about those I should have defined them and listed their origion.
I'm a bit slack and dont do complete explainations.
The tx/rx properties of the transducers are not symetric and they are also dependant on temperature.
int Northerror; //The tof error for north-south transmit
This is my attempt to compensate for this changing error. 20 gave me the best result.
I'm not completely happy with the updating of this error correction factor.
I am reworking the project at the moment and hope to improve on this.
We have the tof difference from the envelope detector and the phase difference from the zcd detector.
In the code I only allow for updating the error when the phase difference goes through zero.
This will happen as the wind is always changing. But if you use a wind tunnel with a constant speed we may
not have a zero and the error would not be updated.
I,m also trying to recover the tof from the zcd detector and so elimating the envelope detector.
I could not do this on my first design and I still have not been able to get reliable values.
It's frustrating because the information on the tof pulse is there in the zcd signal. But least squares
on the polynomial of the pulse and everything else I try cannot give me as good a tof value as
I can get from the envelope detector method.
I'm sure my design has been improved on but no one has shared any details.
If I come up with anything I will share on this page.