Comments (11)
I am working on this now.
I get a problem that the data of any axis being perpendicular to the ground keep rotating. Have ever encountered this problem?
from madgwickahrs.
Hi, @lixuwork. Sounds very similar to my issue.
from madgwickahrs.
Gimbal Lock?
from madgwickahrs.
Hi @PaulStoffregen, I appreciate the help.
I just re-read over gimbal lock to make sure I'm familiar with the general concepts. Would this problem continue to persist over different trials and tests?
I've plotted out the raw data from each of the sensors and they all seem to be working as expected in terms of scale and orientation. Rotating/accelerating about each axis produces expected results from the sensor data.
from madgwickahrs.
Sadly, I can't look at this right now. Crazy busy with another urgent (and very late) project.
But at first glance, it sounds like gimbal lock, so maybe just a pointer to that well-known limitation of roll-pitch-yaw will help? That's all I can do at this moment.
from madgwickahrs.
@PaulStoffregen I appreciate the time you've spent! I'll dive in a bit more. Thanks!
from madgwickahrs.
gyro has error ? Is it calibrated? @ @tshaddix
from madgwickahrs.
Hi, @PaulStoffregen @tshaddix , I just meet the same problem. I use this filter to get the stable quaternion, but the result shows q0 keeps up and q1, q2, and q3 keeps down no matter what value the parameter "delta" is . When I convert the quaternion to euler angles(Raw, pitch, yaw), they keep up just like your data. Do you solve this problem?
from madgwickahrs.
Hi @marooncn . I ended up just going with an IMU that does all of the sensor fusion for you after I had so much trouble getting things to work out myself. Sorry - wish I could be more helpful!
from madgwickahrs.
@tshaddix
Have you solved your problem yet? I think these code is wrong
mx = imu.calcMag(imu.my);
my = -imu.calcMag(imu.mx);
mz = imu.calcMag(imu.mz);
below is correction
mx = -imu.calcMag(imu.mx);
my = -imu.calcMag(imu.my);
mz = imu.calcMag(imu.mz);
from madgwickahrs.
Hi @HelenXR , thanks for following up on this. I never did get this working. Did you try this code on the same IMU type? I remember I had swapped those axises because of a mismatched coordinate system with the IMU (mentioned in the "Potential Problem Areas" section of this issue).
If that is the solution for this IMU, then that's wonderful :)
from madgwickahrs.
Related Issues (20)
- Yaw values in the sample code (visualize)
- Orientation visualizer understanding problem HOT 3
- Pitch and yaw reversed in Visualizer HOT 3
- `strict-aliasing` warnings HOT 7
- Madgwick::computeAngles incorrect. HOT 1
- Errors calculating angles and wrong angles HOT 2
- Compass consistently 20 degrees off? HOT 1
- Add quaternions. HOT 1
- Madgwick Filter
- Keep getting the pitch,roll and yaw as nan or nan(ind)
- Issues on how to use ur code to process data from cell phone's inner sensors HOT 1
- Instability from fast inverse square root implementation
- Add GitHub Action based CI
- Add GitHub Actions workflow to synchronise with shared repository labels
- Yaw drift LSM6D3S HOT 3
- Error caused by repeated code HOT 1
- Centrifugal Force Compensation IMU HOT 1
- Changes and drift in Yaw when varying Pitch/Roll
- 2x missing x2
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 madgwickahrs.