aboutsummaryrefslogtreecommitdiff
path: root/src/modules/attitude_estimator_ekf
diff options
context:
space:
mode:
authorThomas Gubler <thomasgubler@gmail.com>2015-01-08 09:14:21 +0100
committerThomas Gubler <thomasgubler@gmail.com>2015-01-08 09:14:21 +0100
commit94ab82ba4074c52c612e5475bbabc57482b24a59 (patch)
treed994ed8d0dc1c60db0f1ef9d5a725015ad49b73a /src/modules/attitude_estimator_ekf
parentf13f41f704e77ec5259fe2cc8efc440b052db1f7 (diff)
downloadpx4-firmware-94ab82ba4074c52c612e5475bbabc57482b24a59.tar.gz
px4-firmware-94ab82ba4074c52c612e5475bbabc57482b24a59.tar.bz2
px4-firmware-94ab82ba4074c52c612e5475bbabc57482b24a59.zip
R_adapted.data is 2d, making this more obvious
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 d68f12c8e..f0e02c331 100755
--- a/src/modules/attitude_estimator_ekf/attitude_estimator_ekf_main.cpp
+++ b/src/modules/attitude_estimator_ekf/attitude_estimator_ekf_main.cpp
@@ -619,7 +619,7 @@ const unsigned int loop_interval_alarm = 6500; // loop interval in microseconds
att.pitch_sec = euler_angles_sec(1);
att.yaw_sec = euler_angles_sec(2);
- memcpy(&att.R_sec[0], &R_adapted.data[0], sizeof(att.R_sec));
+ memcpy(&att.R_sec[0], &R_adapted.data[0][0], sizeof(att.R_sec));
att.rollspeed_sec = -x_aposteriori[2];
att.pitchspeed_sec = x_aposteriori[1];