psiphi75 / ahrs

AHRS (Attitude Heading Reference Systems) calculation for JavaScript
Apache License 2.0
86 stars 16 forks source link

a question about the package #13

Closed MuhammadLebda closed 3 years ago

MuhammadLebda commented 5 years ago

sorry to bother you with such a stupid question. is this package reads the sensors values ( accelerometer, gyroscope) then calculates the orientation? or just takes those values as an input and then calculates the orientation ? because when I tried to run the code, I get an error " gyro is not defined " thank you :)

psiphi75 commented 5 years ago

This package will not read the values, you need to find a package that does. Then pass those values to this package.

MuhammadLebda commented 5 years ago

aha, thank you :) do you happen to know if there's any good package to read the sensors' values ?

psiphi75 commented 5 years ago

That depends on your device, every device will have its own API interface. I suggest you find the JavaScript API documentation for your device and go from there.

On 1/07/2019, at 11:05, MuhammadLebda notifications@github.com wrote:

aha, thank you :) do you happen to know if there's any good package to read the sensors' values ?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.