if (this.compassId === undefined) {
            this.compassId = navigator.compass.watchHeading(
                (data) => this._updateCompass(data),
                (error)    =>this._onError(error),
                this.compassOptions