double capture encoder