Comments (4)
Do you think it's possible with this package?
That depends. If you use this on a mobile phone and it's in the user's pocket, then it's unlikely to help. But if you place the IMU on a stable platform that is always positioned the same way relative to the direction of motion, it will be useful.
Essentially you need to know the orientation of the IMU with respect to the frame of reference for the object you are measuring. See here https://github.com/psiphi75/ahrs#orientation. I.e. if the user is always holding the mobile device in the same orientation then the heading will work if you have the correct orientation.
Sadly i'm not quite sure how to interpret the values obtained from
madgwick.getEulerAngles()
.
Again, you need to convert the orientation of your IMU values (e.g. ax, ay, yz, gx, ...) to the orientation of the body for madgwick.getEulerAngles()
to make sense.
from ahrs.
The smartphone will be in a hand hold position, in front of the users body. So It’s very likely that the smartphone will move. Would you say that it’s stable enough, @psiphi75?
The initial orientation will be known, because the user has to position himself in the direction of the pathway.
For my application (indoor navigation) it’s actually not relevant if the user is pointing to true or magnetic north. I just need to detect if the user turned 90 degrees to the left/right or 180 degrees. So relative changes should be enough.
The IMU measurements are provided by the react-native-sensors package.
from ahrs.
Sorry for the delay in the reply, I thought I had answered this.
So It’s very likely that the smartphone will move. Would you say that it’s stable enough, @psiphi75?
That's something you would need to test yourself. "Stable enough" is pretty subjective and depends a lot on your application. I would say you should be able to get +/-15 degrees. If you use any compass app on your phone, you would get a feel for it.
from ahrs.
from ahrs.
Related Issues (20)
- Kp and Ki different? HOT 4
- Axis rotation HOT 2
- a question about the package HOT 3
- Using an offset to overcome hinder with pitch in Euler angles? HOT 2
- Gyro & Acc HOT 1
- Calculate sample interval HOT 9
- GetEuler angle always gives values in range of -3 to 3. Am i missing something? HOT 9
- Is this possible to get the position difference or the distance the device was moved from the initial point? HOT 3
- Not working HOT 23
- Make require algorithm names static
- Tilt Correction when it comes to heading? HOT 4
- Sorry, I have a low-level problem. I don't understand how to use it in a browser. I tried to use it this way, but the result was incorrect HOT 4
- Possible variable wrong? HOT 3
- Update Issues HOT 3
- Unexplainable drifting in output HOT 11
- Fast initialization HOT 7
- Combining AHRS with gyronorm.js HOT 12
- test data HOT 1
- Inaccurate heading when using iOS sensors and Madgwick HOT 17
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ahrs.