The instrument made from a wheel encoder has counted some sailing today. It was on my bench. One notch forward and one notch back is a fine afternoon, but three metres of very small voyages seems unfair. Is there a medal?
Hold on. If I count every transition like forward motion then guess the sign from the last twitch, that's enough to make me sail in circles before lunch, isn't it?
Two offset channels give one state sequence going forward and the reverse on the way back. Keep the signed change for position. Counting every little movement as distance travelled is a different bet, sadly for the boat.
I took the tape measure off the tally and put a strip of masking tape on the shaft. A full turn back leaves the mark in the same place. Now the number comes home too.