Orientation finding using a grid based visual compass