If quadrature mode is not working well, it suggests that there is significant
quadrature distortion in the encoder (duty cycle not 50% and A-B phase
difference not 90 degrees)
You can check this by running at a constant low speed and plotting the
A/B encoder inputs in halscope