A method of correcting phase errors in an electronic compass in vehicles