GithubHelp home page GithubHelp logo

Comments (5)

xioTechnologies avatar xioTechnologies commented on July 24, 2024

I suspect that the issue is poor magnetometer calibration. I suggest you use ahrs.update_no_magnetometer instead of ahrs.update so that the magnetometer is ignored. If you are using the algorithm without the magnetometer then you can use the ahrs.heading = 0 to zero the yaw at any time.

from fusion.

viatto avatar viatto commented on July 24, 2024

it is not working the function ahrs.update_no_magnetometer

from fusion.

xioTechnologies avatar xioTechnologies commented on July 24, 2024

Please provide a description of the issue

from fusion.

viatto avatar viatto commented on July 24, 2024

ahrs.update_no_magnetometer(g1, a1, deltat) If I try to substitute in the code this function instead of the classic one 'ahrs.update'. The only result I have in acceleration function ahrs.earth_acceleration is a vector of 0 , 0, 1

from fusion.

xioTechnologies avatar xioTechnologies commented on July 24, 2024

The code and plot below does not demonstrate the issue you have reported. I believe the problem is with either your data or your use of the library. I suggest you start from a working example and make small iterative changes towards your intended design.

import imufusion
import matplotlib.pyplot as pyplot
import numpy

data = numpy.genfromtxt("sensor_data.csv", delimiter=",", skip_header=1)

gyroscope = data[:, 1:4]
accelerometer = data[:, 4:7]

ahrs = imufusion.Ahrs()
earth_acceleration = numpy.empty_like(gyroscope)

for index in range(len(gyroscope)):
    ahrs.update_no_magnetometer(gyroscope[index], accelerometer[index], 1 / 100)
    earth_acceleration[index] = ahrs.earth_acceleration

pyplot.plot(earth_acceleration)
pyplot.show()

image

from fusion.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.