int quadrature(unsigned char*stateticks,char encoder_A,char encoder_B,long *ticks);

