Got code working without kludge to flip bearing around Y axis.