diff options
author | Anton Babushkin <anton.babushkin@me.com> | 2013-08-26 09:12:17 +0200 |
---|---|---|
committer | Anton Babushkin <anton.babushkin@me.com> | 2013-08-26 09:12:17 +0200 |
commit | c5731bbc3f29361f3d50ecc54d44a521d2441a48 (patch) | |
tree | 9820a5cf54f4096f54250d484248a1f53a66a8cb /src/modules/mavlink/orb_listener.c | |
parent | 25379771012761cd331e26eedd6a7ac649e04f5f (diff) | |
download | px4-firmware-c5731bbc3f29361f3d50ecc54d44a521d2441a48.tar.gz px4-firmware-c5731bbc3f29361f3d50ecc54d44a521d2441a48.tar.bz2 px4-firmware-c5731bbc3f29361f3d50ecc54d44a521d2441a48.zip |
TAKEOFF implemented for multirotors, added altitude check to waypoint navigation.
Diffstat (limited to 'src/modules/mavlink/orb_listener.c')
-rw-r--r-- | src/modules/mavlink/orb_listener.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/mavlink/orb_listener.c b/src/modules/mavlink/orb_listener.c index dcdc03281..53d86ec00 100644 --- a/src/modules/mavlink/orb_listener.c +++ b/src/modules/mavlink/orb_listener.c @@ -341,7 +341,7 @@ l_global_position(const struct listener *l) int16_t vz = (int16_t)(global_pos.vz * 100.0f); /* heading in degrees * 10, from 0 to 36.000) */ - uint16_t hdg = (global_pos.hdg / M_PI_F) * (180.0f * 10.0f) + (180.0f * 10.0f); + uint16_t hdg = (global_pos.yaw / M_PI_F) * (180.0f * 10.0f) + (180.0f * 10.0f); mavlink_msg_global_position_int_send(MAVLINK_COMM_0, timestamp / 1000, |