Skip to content

Error: no sensors found to register gyroscope listening to #6

@ricopo1

Description

@ricopo1

I'm trying to get the speed x,y,z positions using this code:

methods: {
  	startGyroscope: function() {
  		alert("start Gyroscope")
  		navigator.gyroscope.getCurrent(this.onSuccess, this.onError);
  	},
  	onSuccess (speed) {
  		alert("success")
  		this.speed.x = speed.x
  		this.speed.y = speed.y
  		this.speed.z = speed.z
  		this.speed.timestamp = speed.timestamp
  	},
  	onError (err) {
  		alert("code: " + err.code + " message: " + err.message)
  	}
  }

I call the startGyroscope when the page is loaded
Error code 3 with this message "no sensors found to register gyroscope listening to"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions