diff options
author | Lorenz Meier <lm@inf.ethz.ch> | 2012-11-09 16:04:30 +0100 |
---|---|---|
committer | Lorenz Meier <lm@inf.ethz.ch> | 2012-11-09 16:04:30 +0100 |
commit | 50558d5cb7b76b649dbb9c1b2dbfa49550c340d2 (patch) | |
tree | f7ebea40d4df878ae832b45d18d74aaa54ed4da0 /apps/sdlog | |
parent | 4338dd1e4884b91c4c38d55e83ac0f4d5dff89bc (diff) | |
download | px4-firmware-50558d5cb7b76b649dbb9c1b2dbfa49550c340d2.tar.gz px4-firmware-50558d5cb7b76b649dbb9c1b2dbfa49550c340d2.tar.bz2 px4-firmware-50558d5cb7b76b649dbb9c1b2dbfa49550c340d2.zip |
Fixed indices in logger
Diffstat (limited to 'apps/sdlog')
-rw-r--r-- | apps/sdlog/sdlog.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/sdlog/sdlog.c b/apps/sdlog/sdlog.c index cf6edcbe6..eed72125a 100644 --- a/apps/sdlog/sdlog.c +++ b/apps/sdlog/sdlog.c @@ -523,7 +523,7 @@ int sdlog_thread_main(int argc, char *argv[]) { .local_position = {buf.local_pos.x, buf.local_pos.y, buf.local_pos.z}, .gps_raw_position = {buf.gps_pos.lat, buf.gps_pos.lon, buf.gps_pos.alt}, .attitude = {buf.att.pitch, buf.att.roll, buf.att.yaw}, - .rotMatrix = {buf.att.R[1][1], buf.att.R[1][2], buf.att.R[1][3], buf.att.R[2][1], buf.att.R[2][2], buf.att.R[2][3], buf.att.R[3][1], buf.att.R[3][2], buf.att.R[3][3]} + .rotMatrix = {buf.att.R[0][0], buf.att.R[0][1], buf.att.R[0][2], buf.att.R[1][0], buf.att.R[1][1], buf.att.R[1][2], buf.att.R[2][0], buf.att.R[2][1], buf.att.R[2][2]} }; #pragma pack(pop) |