ahrs | AHRS calculation

 by   psiphi75 JavaScript Version: 1.3.3 License: Apache-2.0

kandi X-RAY | ahrs Summary

kandi X-RAY | ahrs Summary

ahrs is a JavaScript library typically used in Internet of Things (IoT), Arduino applications. ahrs has no bugs, it has no vulnerabilities, it has a Permissive License and it has low support. You can install using 'npm i ahrs' or download it from GitHub, npm.

AHRS (Attitude Heading Reference Systems) calculation for JavaScript, or sensor fusion as some people call it. This will calculate the attitude and heading for a device with all of the following sensors: compass, gyroscope and accelerometer. The Madgwick or Mahony algorithms can be used to filter data in real time from these sensors.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              ahrs has a low active ecosystem.
              It has 50 star(s) with 14 fork(s). There are 3 watchers for this library.
              OutlinedDot
              It had no major release in the last 12 months.
              There are 4 open issues and 11 have been closed. On average issues are closed in 22 days. There are no pull requests.
              It has a neutral sentiment in the developer community.
              The latest version of ahrs is 1.3.3

            kandi-Quality Quality

              ahrs has 0 bugs and 0 code smells.

            kandi-Security Security

              ahrs has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              ahrs code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              ahrs is licensed under the Apache-2.0 License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              ahrs releases are not available. You will need to build from source code and install.
              Deployable package is available in npm.
              Installation instructions are not available. Examples and code snippets are available.

            Top functions reviewed by kandi - BETA

            kandi has reviewed ahrs and discovered the below as its top functions. This is intended to give you an instant insight into ahrs implemented functionality, and help decide if they suit your requirements.
            • Creates an adgion update
            • Calculate the MDO ARN object .
            • Calculate AMR trend
            • Updates ARN .
            • Computes the angle from an arc .
            • Initialize the HRS function
            • Converts Euler angle to quaternion
            • initializes the quaternion
            • Computes cross product
            • exec a module
            Get all kandi verified functions for this library.

            ahrs Key Features

            No Key Features are available at this moment for ahrs.

            ahrs Examples and Code Snippets

            No Code Snippets are available at this moment for ahrs.

            Community Discussions

            QUESTION

            How does covariance matrix (P) in Kalman filter get updated in relation to measurements and state estimate?
            Asked 2020-Apr-29 at 12:18

            I am in the midst of implementing a Kalman filter based AHRS in C++. There's something rather strange to me in the equations of the filter.

            I can't find the part where the P (covariance) matrix is actually updated to represent uncertainty of predictions. During the "predict" step P estimate is calculated from its previous value, A and Q. From what I understand A (system matrix) and Q (covariance of noise) are constant. Then during "Correct" P is calculated from K, H and predicted P. H (observation matrix) is constant, so the only variable that affects P is K (Kalman gain). But K is calculated from predicted P, H and R (observation noise) that are either constants or the P itself. So where is the part of the equations that makes P relate to x? To me it seems like P is recursively looping here depending only on the constants and initial value of P. This doesn't make any sense. What am I missing?

            ...

            ANSWER

            Answered 2020-Apr-29 at 12:18

            You are not missing anything.

            It can come as a surprise to realise that, indeed, the state error covariance matrix (P) in a linear kalman filter does not depend on the the data (z). One way to lessen the surprise is to note what the covariance is saying: it is how uncertain you should be in the estimated state, given that the models you are using (effectively A,Q and H,R) are accurate. It is not saying: this is the uncertainty. By judicious tweaking of Q and R you could change P arbitrarily. In particular you should not interpret P as a 'quality' figure, but rather look at the observation residuals. You could, for example, make P smaller by reducing R. However then the residuals would be larger compared with their computed sds.

            When the observations come in at a constant rate, and always the same set of observations, P will tend to a steady state that could, in principal, be computed ahead of time.

            However there is no difficulty in applying the kalman filter when you have varying times between observations and varying sets of observations at each time, for example if you have various sensor systems with different sampling periods. In this case you will see more variation in P, though again in principal this could be computed ahead of time.

            Further the kalman filter can be extended (in various ways, eg the extended kalman filter and the unscented kalman filter) to handle non linear dynamics and non linear observations. In this case because the transition matrix (A) and the observation model matrix (H) have a state dependency, so too will P.

            Source https://stackoverflow.com/questions/61486107

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install ahrs

            You can install using 'npm i ahrs' or download it from GitHub, npm.

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            Install
          • npm

            npm i ahrs

          • CLONE
          • HTTPS

            https://github.com/psiphi75/ahrs.git

          • CLI

            gh repo clone psiphi75/ahrs

          • sshUrl

            git@github.com:psiphi75/ahrs.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link