Browse Source

AP_NavEKF3: Fix use of incorrect ballistic coefficient parameter

zr-v5.1
Paul Riseborough 4 years ago committed by Randy Mackay
parent
commit
342e6b35fa
  1. 2
      libraries/AP_NavEKF3/AP_NavEKF3_AirDataFusion.cpp

2
libraries/AP_NavEKF3/AP_NavEKF3_AirDataFusion.cpp

@ -461,7 +461,7 @@ void NavEKF3_core::FuseDragForces() @@ -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;

Loading…
Cancel
Save