diff options
author | Sebastian Verling <sverling@student.ethz.ch> | 2015-02-23 18:38:55 +0100 |
---|---|---|
committer | Sebastian Verling <sverling@student.ethz.ch> | 2015-02-23 18:38:55 +0100 |
commit | bbd5f33a22f6371a0dd6c0c6ae4a585101e81398 (patch) | |
tree | 206b7a4b2a9ce00432be82f2d12c1e2b6c8a9acb /src/modules | |
parent | 4938ff4c295dafac5ba1c221c6290e9e37e0442f (diff) | |
download | px4-firmware-bbd5f33a22f6371a0dd6c0c6ae4a585101e81398.tar.gz px4-firmware-bbd5f33a22f6371a0dd6c0c6ae4a585101e81398.tar.bz2 px4-firmware-bbd5f33a22f6371a0dd6c0c6ae4a585101e81398.zip |
removed duplicate line
Diffstat (limited to 'src/modules')
-rw-r--r-- | src/modules/ekf_att_pos_estimator/ekf_att_pos_estimator_main.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/modules/ekf_att_pos_estimator/ekf_att_pos_estimator_main.cpp b/src/modules/ekf_att_pos_estimator/ekf_att_pos_estimator_main.cpp index 1c79cb61d..7278d4f66 100644 --- a/src/modules/ekf_att_pos_estimator/ekf_att_pos_estimator_main.cpp +++ b/src/modules/ekf_att_pos_estimator/ekf_att_pos_estimator_main.cpp @@ -457,9 +457,7 @@ int AttitudePositionEstimatorEKF::check_filter_state() rep.states[i] = ekf_report.states[i]; } - for (size_t i = 0; i < rep.n_states; i++) { - rep.states[i] = ekf_report.states[i]; - } + if (_estimator_status_pub > 0) { orb_publish(ORB_ID(estimator_status), _estimator_status_pub, &rep); |