Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GNSS Heading Updates API call failure #379

Open
GavPL opened this issue Feb 20, 2024 · 0 comments
Open

GNSS Heading Updates API call failure #379

GavPL opened this issue Feb 20, 2024 · 0 comments

Comments

@GavPL
Copy link

GavPL commented Feb 20, 2024

We are running 3DMGX5-AHRS device and attempting to remove the magnetometer data from the EKF calculations. We initialise the EKF heading value from an external GNSS.
The initialisation appears to work okay and I can continue as previously.
When I attempt to to pass further headings from external GNSS to IMU I get an API call failure (retCode 4) but I cannot work out error is indicated.

Code Snippet

if (!data.ekfInitialised_) {
SetImuIdle();
data.node_.setInitialHeading(ostkmath::degreesToRadians(nmeaHDTData.heading));
    data.ekfInitialised_ = true;
StartImuSampling();
} else {
      mscl::HeadingData headingData;
      headingData.headingAngle = ostkmath::degreesToRadians(nmeaHDTData.heading); // pass radians value to function
      // SetImuIdle();   
      data.node_.sendExternalHeadingUpdate(headingData); // THIS CALL FAILS
      // StartImuSampling();
}
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant