Note that if you are being set significantly by the current at the time of the wind measurement, which would be the case if your COG from the GPS does not agree with your heading, then this method of determining true wind from apparent will not work.