Use a less bogus way to detect "index" with Resolvers. For example, one that only happens once per rev. And fix an off-by-one error in the reverse direction too.
Use a less bogus way to detect "index" with Resolvers.
For example, one that only happens once per rev.
And fix an off-by-one error in the reverse direction too.


Signed-off-by: Andy Pugh <e3579b1e47f273529f0f929453e939a68ede9fd1@bodgesoc.org>

strahlex/machinekit,ArcEye/MK-Qt5,araisrobo/machinekit,EqAfrica/machinekit,ArcEye/MK-Qt5,aschiffler/linuxcnc,bmwiedemann/linuxcnc-mirror,jaguarcat79/ILC-with-LinuxCNC,ArcEye/machinekit-testing,strahlex/machinekit,ArcEye/MK-Qt5,cdsteinkuehler/linuxcnc,ArcEye/machinekit-testing,bmwiedemann/linuxcnc-mirror,araisrobo/machinekit,cdsteinkuehler/MachineKit,kinsamanka/machinekit,Cid427/machinekit,RunningLight/machinekit,cdsteinkuehler/linuxcnc,cdsteinkuehler/MachineKit,ikcalB/linuxcnc-mirror,mhaberler/machinekit,cdsteinkuehler/linuxcnc,narogon/linuxcnc,jaguarcat79/ILC-with-LinuxCNC,bobvanderlinden/machinekit,kinsamanka/machinekit,ArcEye/machinekit-testing,ikcalB/linuxcnc-mirror,bobvanderlinden/machinekit,araisrobo/machinekit,araisrobo/machinekit,RunningLight/machinekit,cdsteinkuehler/MachineKit,Cid427/machinekit,Cid427/machinekit,unseenlaser/linuxcnc,cdsteinkuehler/MachineKit,unseenlaser/machinekit,strahlex/machinekit,araisrobo/machinekit,bmwiedemann/linuxcnc-mirror,mhaberler/machinekit,RunningLight/machinekit,bobvanderlinden/machinekit,mhaberler/machinekit,EqAfrica/machinekit,kinsamanka/machinekit,EqAfrica/machinekit,narogon/linuxcnc,aschiffler/linuxcnc,ikcalB/linuxcnc-mirror,ikcalB/linuxcnc-mirror,kinsamanka/machinekit,unseenlaser/linuxcnc,jaguarcat79/ILC-with-LinuxCNC,strahlex/machinekit,kinsamanka/machinekit,aschiffler/linuxcnc,cdsteinkuehler/linuxcnc,ikcalB/linuxcnc-mirror,RunningLight/machinekit,unseenlaser/machinekit,Cid427/machinekit,RunningLight/machinekit,jaguarcat79/ILC-with-LinuxCNC,araisrobo/machinekit,Cid427/machinekit,RunningLight/machinekit,unseenlaser/machinekit,bobvanderlinden/machinekit,bmwiedemann/linuxcnc-mirror,unseenlaser/machinekit,mhaberler/machinekit,unseenlaser/machinekit,araisrobo/machinekit,ArcEye/MK-Qt5,ikcalB/linuxcnc-mirror,cdsteinkuehler/MachineKit,Cid427/machinekit,EqAfrica/machinekit,kinsamanka/machinekit,aschiffler/linuxcnc,kinsamanka/machinekit,narogon/linuxcnc,strahlex/machinekit,EqAfrica/machinekit,araisrobo/machinekit,narogon/linuxcnc,EqAfrica/machinekit,bmwiedemann/linuxcnc-mirror,unseenlaser/linuxcnc,strahlex/machinekit,EqAfrica/machinekit,unseenlaser/machinekit,jaguarcat79/ILC-with-LinuxCNC,RunningLight/machinekit,ArcEye/machinekit-testing,ArcEye/MK-Qt5,bmwiedemann/linuxcnc-mirror,strahlex/machinekit,cdsteinkuehler/linuxcnc,araisrobo/machinekit,unseenlaser/machinekit,aschiffler/linuxcnc,bobvanderlinden/machinekit,narogon/linuxcnc,cdsteinkuehler/MachineKit,bobvanderlinden/machinekit,ArcEye/MK-Qt5,cdsteinkuehler/linuxcnc,ArcEye/machinekit-testing,ArcEye/machinekit-testing,mhaberler/machinekit,unseenlaser/linuxcnc,mhaberler/machinekit,ikcalB/linuxcnc-mirror,ArcEye/MK-Qt5,bobvanderlinden/machinekit,RunningLight/machinekit,ArcEye/machinekit-testing,kinsamanka/machinekit,Cid427/machinekit,unseenlaser/machinekit,ArcEye/MK-Qt5,unseenlaser/linuxcnc,ArcEye/machinekit-testing,mhaberler/machinekit,Cid427/machinekit,EqAfrica/machinekit,bmwiedemann/linuxcnc-mirror,bobvanderlinden/machinekit,mhaberler/machinekit