catchcycle() has been tested to detect motor angle and direction of rotation safely.