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"
I'm trying to get the speed x,y,z positions using this code:
I call the startGyroscope when the page is loaded
Error code 3 with this message "no sensors found to register gyroscope listening to"