AP_NavEKF3: Fix use of incorrect ballistic coefficient parameter

This commit is contained in:
Paul Riseborough 2021-02-17 15:13:03 +11:00 committed by Randy Mackay
parent 7370cd9f00
commit 342e6b35fa
1 changed files with 1 additions and 1 deletions

View File

@ -461,7 +461,7 @@ void NavEKF3_core::FuseDragForces()
{
// drag model parameters
const float bcoef_x = frontend->_ballisticCoef_x;
const float bcoef_y = frontend->_ballisticCoef_x;
const float bcoef_y = frontend->_ballisticCoef_y;
const float mcoef = frontend->_momentumDragCoef.get();
const bool using_bcoef_x = bcoef_x > 1.0f;
const bool using_bcoef_y = bcoef_y > 1.0f;