From 207f08aa15e183998222f8b821ed46365fa61f91 Mon Sep 17 00:00:00 2001 From: Daniel Agar Date: Sat, 14 Jan 2017 15:23:21 -0500 Subject: [PATCH] apps.cpp and ekf_att_pos_estimator readability braces fix --- src/examples/ekf_att_pos_estimator/estimator_22states.cpp | 7 +++++-- src/platforms/apps.cpp.in | 3 ++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/examples/ekf_att_pos_estimator/estimator_22states.cpp b/src/examples/ekf_att_pos_estimator/estimator_22states.cpp index 3f40925cf6..d0daa8a699 100644 --- a/src/examples/ekf_att_pos_estimator/estimator_22states.cpp +++ b/src/examples/ekf_att_pos_estimator/estimator_22states.cpp @@ -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]; diff --git a/src/platforms/apps.cpp.in b/src/platforms/apps.cpp.in index 28687d50d9..575ef712d2 100644 --- a/src/platforms/apps.cpp.in +++ b/src/platforms/apps.cpp.in @@ -40,8 +40,9 @@ ${builtin_apps_string} void list_builtins(apps_map_type &apps) { PX4_INFO("Builtin Commands:\n"); - for (apps_map_type::iterator it = apps.begin(); it != apps.end(); ++it) + for (apps_map_type::iterator it = apps.begin(); it != apps.end(); ++it) { PX4_INFO("%s : 0x%x\n", it->first.c_str(), it->second); + } } int shutdown_main(int argc, char *argv[])