KVH sailcomp still has electronic compasses available. This is similar to the one I have: https://www.marineelectronics.com/products/product/103ac-sailcomp
Ensure that the COG is magnetic, not True, to be used to compare with a magnetic compass. Then as mentioned ensure allowance for wind and current as COG will be correct when the compass is affected by a boat crabbing.
Here's some info on electrical circuits and compass deviation.
https://www.wired.com/story/can-your-electronic-gadgets-interfere-with-your-compass/
Short story here. ............... Never told my wife who was with me. Of course bought new batteries. So upon arriving home I checked the compass. It was only the last 1/4 inch down to the the dash the deflected the compass. I guess my finger was under it initially.
Ya know, RickyD, we are not usually persnickety about punctuation here, but a comma can make a lot of difference in a marriage:
"Never told my wife who was with me
versus
I never told my wife, who was with me.
Actually, I'm now wondering which is correct.
Your correction is the correct one. I'm usually one who complains about punctuation. This time I was just typing faster than my brain can work. You see I should have said : My wife was with me but I never told her. I started typing "I never told my wife" But then realized I needed to make it clear she was with me. But then, as you pointed out, I didn't.