Comments (3)
Thank you for raising the issue. The problem can be demonstrated using the following code. The plot ends after 45 samples because the remaining 55 samples are all NaN.
import imufusion
import matplotlib.pyplot as pyplot
import numpy
numberOfSamples = 100
ahrs = imufusion.Ahrs()
pitch = numpy.empty(numberOfSamples)
for index in range(numberOfSamples):
ahrs.update_no_magnetometer(numpy.array([0, 0, 0]), numpy.array([1, 0, 0]), 1 / numberOfSamples)
pitch[index] = ahrs.quaternion.to_euler()[1]
pyplot.plot(pitch)
pyplot.show()
After implementing the fix you have suggested, the plot shows all 100 samples as shown below.
As an aside, it is interesting to note that the transition from the final asinf
result (-89.5) to the hardcoded -90.0f
is visible in the above plot as step change. The transition becomes smoother when FUSION_USE_NORMAL_SQRT
is used as shown below.
from fusion.
The fix has been applied as commit d7788de.
from fusion.
Thanks! We are going to use it in the next release :)
from fusion.
Related Issues (20)
- Question: About the details of the Fusion algorithm HOT 2
- Rust bindings HOT 7
- Guidance on tuning Fusion for "responsiveness" HOT 2
- Inferring gyroscope range HOT 3
- Roll and pitch relative to device, yaw relative to earth HOT 2
- Linear/earth acceleration very slow to catch up with movement HOT 3
- TEST data HOT 1
- Python "No code object available for imufusion" with Setup.py or pip install HOT 4
- Measurement convention for sensors other than x-imu HOT 3
- How to use the magnetometer data with different sampling frequency from the inertial sensors? HOT 1
- Gyroscope Offset Algorithm HOT 7
- Link to dissertation is broken HOT 1
- Q: Influence of motion and external acceleration HOT 3
- Very noisy Roll Pitch Yaw data HOT 5
- Recommended sampling rate? HOT 2
- yaw value changes while rotating on only roll or pitch axis. HOT 3
- 5 seconds delay in real-time operation (python) HOT 2
- Need some help setting up the algorithm. HOT 14
- Application Questions HOT 25
- Integration of GPS data to estimate position and velocity HOT 1
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 fusion.