robot rotating using compass