Compass initialization