Full Encoder Resolution

Hello Everyone

Actually , I need to get a full encoder resolution and interrupts on both pins of each encoder, is there any code for this task ?

Hint : I had two encoders with Arduino Mega .

Pololu's code works well Pololu - 18. Wheel Encoders

jremington:
Pololu's code works well Pololu - 18. Wheel Encoders

thanks jremington , but if I am not wrong that just for a Pololu Encoders , actually I had another encoder type , I don't really know its name but it is the type which equipped into Rover 5 Tracked Chassis .

All quadrature encoders output two signals, A & B. What else do you need to know?