a code in which each of a sequence of code words differs by one bit from
the preceding one, and the assigned value of each code word is one more
than that of the preceding one. Such a code avoids glitches (i.e.,
sharp momentary unwanted spikes) when, in an electromechanical system,
the sensors giving the code words are imperfectly aligned. For example,
one possible three-bit Gray code is:
000 001 011 010 110 111 101 100.