aboutsummaryrefslogtreecommitdiff
path: root/src/modules/ekf_att_pos_estimator
diff options
context:
space:
mode:
authorThomas Gubler <thomasgubler@gmail.com>2014-12-02 12:19:24 +0100
committerThomas Gubler <thomasgubler@gmail.com>2014-12-02 12:19:24 +0100
commite28e8c11bba0779386fc16ee47deac4db39b51c0 (patch)
treee86866463bd88c5d1c11bbd0db14152a26e0e05c /src/modules/ekf_att_pos_estimator
parent141dda209222a7dd5afad6b844735fd9a44756a6 (diff)
downloadpx4-firmware-e28e8c11bba0779386fc16ee47deac4db39b51c0.tar.gz
px4-firmware-e28e8c11bba0779386fc16ee47deac4db39b51c0.tar.bz2
px4-firmware-e28e8c11bba0779386fc16ee47deac4db39b51c0.zip
make default apps compatible with autogenerated attitude and rc_channels message
Diffstat (limited to 'src/modules/ekf_att_pos_estimator')
-rw-r--r--src/modules/ekf_att_pos_estimator/ekf_att_pos_estimator_main.cpp3
1 files changed, 2 insertions, 1 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 e7805daa9..db6773b8a 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
@@ -83,6 +83,7 @@
#include <systemlib/systemlib.h>
#include <mathlib/mathlib.h>
#include <mavlink/mavlink_log.h>
+#include <px4_defines.h>
#include "estimator_23states.h"
@@ -1384,7 +1385,7 @@ FixedwingEstimator::task_main()
math::Vector<3> euler = R.to_euler();
for (int i = 0; i < 3; i++) for (int j = 0; j < 3; j++)
- _att.R[i][j] = R(i, j);
+ PX4_R(_att.R, i, j) = R(i, j);
_att.timestamp = _last_sensor_timestamp;
_att.q[0] = _ekf->states[0];