aboutsummaryrefslogtreecommitdiff
path: root/src/modules/attitude_estimator_ekf
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/attitude_estimator_ekf
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/attitude_estimator_ekf')
-rwxr-xr-xsrc/modules/attitude_estimator_ekf/attitude_estimator_ekf_main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/attitude_estimator_ekf/attitude_estimator_ekf_main.cpp b/src/modules/attitude_estimator_ekf/attitude_estimator_ekf_main.cpp
index e2dbc30dd..8d537d676 100755
--- a/src/modules/attitude_estimator_ekf/attitude_estimator_ekf_main.cpp
+++ b/src/modules/attitude_estimator_ekf/attitude_estimator_ekf_main.cpp
@@ -549,7 +549,7 @@ const unsigned int loop_interval_alarm = 6500; // loop interval in microseconds
R = R_decl * R_body;
/* copy rotation matrix */
- memcpy(&att.R[0][0], &R.data[0][0], sizeof(att.R));
+ memcpy(&att.R[0], &R.data[0][0], sizeof(att.R));
att.R_valid = true;
if (isfinite(att.roll) && isfinite(att.pitch) && isfinite(att.yaw)) {