-
-
Notifications
You must be signed in to change notification settings - Fork 263
Description
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