mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-28 23:43:34 +08:00
apps.cpp and ekf_att_pos_estimator readability braces fix
This commit is contained in:
@@ -1095,8 +1095,11 @@ void AttPosEKF::FuseVelposNED()
|
||||
float hgtVarianceScaler = dtHgtFilt / dtVelPosFilt;
|
||||
|
||||
// set the GPS data timeout depending on whether airspeed data is present
|
||||
if (useAirspeed) horizRetryTime = gpsRetryTime;
|
||||
else horizRetryTime = gpsRetryTimeNoTAS;
|
||||
if (useAirspeed) {
|
||||
horizRetryTime = gpsRetryTime;
|
||||
} else {
|
||||
horizRetryTime = gpsRetryTimeNoTAS;
|
||||
}
|
||||
|
||||
// Form the observation vector
|
||||
for (uint8_t i=0; i <=2; i++) observation[i] = velNED[i];
|
||||
|
||||
Reference in New Issue
Block a user