mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-22 16:03:34 +08:00
ekf2: move drag fusion activation from AID_MASK to DRAG_CTRL
This commit is contained in:
@@ -285,12 +285,12 @@ matrix::Vector3f EkfWrapper::getDeltaVelBiasVariance() const
|
||||
|
||||
void EkfWrapper::enableDragFusion()
|
||||
{
|
||||
_ekf_params->fusion_mode |= SensorFusionMask::USE_DRAG;
|
||||
_ekf_params->drag_ctrl = 1;
|
||||
}
|
||||
|
||||
void EkfWrapper::disableDragFusion()
|
||||
{
|
||||
_ekf_params->fusion_mode &= ~SensorFusionMask::USE_DRAG;
|
||||
_ekf_params->drag_ctrl = 0;
|
||||
}
|
||||
|
||||
void EkfWrapper::setDragFusionParameters(const float &bcoef_x, const float &bcoef_y, const float &mcoef)
|
||||
|
||||
Reference in New Issue
Block a user