add compass sample