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

Error in "AP_NavEKF2_MagFusion.cpp" #49

Open
HamidTheCoder opened this issue Aug 2, 2023 · 1 comment
Open

Error in "AP_NavEKF2_MagFusion.cpp" #49

HamidTheCoder opened this issue Aug 2, 2023 · 1 comment

Comments

@HamidTheCoder
Copy link

Why I got the following error, when I try to install "Ardupilot and MAVProxy"?

../../libraries/AP_NavEKF2/AP_NavEKF2_MagFusion.cpp: In member function ‘void NavEKF2_core::FuseMagnetometer()’:
../../libraries/AP_NavEKF2/AP_NavEKF2_MagFusion.cpp:681:44: error: ‘H_MAG’ may be used uninitialized [-Werror=maybe-uninitialized]
681 | KH[i][j] = Kfusion[i] * H_MAG[j];
| ~~~~~~~^
compilation terminated due to -Wfatal-errors.
cc1plus: some warnings being treated as errors

Waf: Leaving directory `/home/hamid/ardupilot/build/sitl'
Build failed
-> task in 'objs/AP_NavEKF2' failed (exit status 1):
{task 139951261890144: cxx AP_NavEKF2_MagFusion.cpp -> AP_NavEKF2_MagFusion.cpp.0.o}
(run with -v to display more information)
SIM_VEHICLE: Build failed
SIM_VEHICLE: Killing tasks

@MadridM20
Copy link

ever found the solution?

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

2 participants