Magnetic encoder initial commit