// always use simple heading fusion when on the ground
_control_status.flags.mag_hdg=true;
_control_status.flags.mag_3D=false;
}
}else{
// do no magnetometer fusion at all
_control_status.flags.mag_hdg=false;
_control_status.flags.mag_3D=false;
}
// if we are using 3-axis magnetometer fusion, but without external aiding, then the declination needs to be fused as an observation to prevent long term heading drift
// if we are using 3-axis magnetometer fusion, but without external aiding, then the declination must be fused as an observation to prevent long term heading drift
// fusing declination when gps aiding is available is optional, but recommneded to prevent problem if the vehicle is static for extended periods of time