mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-22 17:17:35 +08:00
ekf2: style fixes
This commit is contained in:
committed by
Beat Küng
parent
09da8e7dfc
commit
643d8e968b
@@ -916,11 +916,12 @@ void Ekf2::run()
|
||||
_ekf.set_air_density(airdata.rho);
|
||||
|
||||
// calculate static pressure error = Pmeas - Ptruth
|
||||
// model position error sensitivity as a body fixed ellipse with a different scale in the positive and
|
||||
// model position error sensitivity as a body fixed ellipse with a different scale in the positive and
|
||||
// negative X and Y directions
|
||||
const Vector3f vel_body_wind = get_vel_body_wind();
|
||||
|
||||
float K_pstatic_coef_x;
|
||||
|
||||
if (vel_body_wind(0) >= 0.0f) {
|
||||
K_pstatic_coef_x = _K_pstatic_coef_xp.get();
|
||||
|
||||
@@ -929,6 +930,7 @@ void Ekf2::run()
|
||||
}
|
||||
|
||||
float K_pstatic_coef_y;
|
||||
|
||||
if (vel_body_wind(1) >= 0.0f) {
|
||||
K_pstatic_coef_y = _K_pstatic_coef_yp.get();
|
||||
|
||||
|
||||
@@ -1203,7 +1203,7 @@ PARAM_DEFINE_FLOAT(EKF2_PCOEF_XN, 0.0f);
|
||||
|
||||
/**
|
||||
* Pressure position error coefficient for the Y axis.
|
||||
* This is the ratio of static pressure error to dynamic pressure generated by a wind relative velocity along the positive Y (RH) body axis.
|
||||
* This is the ratio of static pressure error to dynamic pressure generated by a wind relative velocity along the positive Y (RH) body axis.
|
||||
* If the baro height estimate rises during sideways flight to the right, then this will be a negative number.
|
||||
*
|
||||
* @group EKF2
|
||||
|
||||
Reference in New Issue
Block a user