Orientation solver