diff options
author | Thomas Gubler <thomasgubler@gmail.com> | 2014-12-02 12:19:24 +0100 |
---|---|---|
committer | Thomas Gubler <thomasgubler@gmail.com> | 2014-12-02 12:19:24 +0100 |
commit | e28e8c11bba0779386fc16ee47deac4db39b51c0 (patch) | |
tree | e86866463bd88c5d1c11bbd0db14152a26e0e05c /src/modules/fw_pos_control_l1/fw_pos_control_l1_main.cpp | |
parent | 141dda209222a7dd5afad6b844735fd9a44756a6 (diff) | |
download | px4-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/fw_pos_control_l1/fw_pos_control_l1_main.cpp')
-rw-r--r-- | src/modules/fw_pos_control_l1/fw_pos_control_l1_main.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/modules/fw_pos_control_l1/fw_pos_control_l1_main.cpp b/src/modules/fw_pos_control_l1/fw_pos_control_l1_main.cpp index 6017369aa..f441c4a91 100644 --- a/src/modules/fw_pos_control_l1/fw_pos_control_l1_main.cpp +++ b/src/modules/fw_pos_control_l1/fw_pos_control_l1_main.cpp @@ -90,6 +90,7 @@ #include <external_lgpl/tecs/tecs.h> #include "landingslope.h" #include "mtecs/mTecs.h" +#include <px4_defines.h> static int _control_task = -1; /**< task handle for sensor task */ @@ -704,7 +705,7 @@ FixedwingPositionControl::vehicle_attitude_poll() /* set rotation matrix */ for (int i = 0; i < 3; i++) for (int j = 0; j < 3; j++) - _R_nb(i, j) = _att.R[i][j]; + _R_nb(i, j) = PX4_R(_att.R, i, j); } } |