diff options
author | Anton Babushkin <anton.babushkin@me.com> | 2014-01-27 12:09:23 +0100 |
---|---|---|
committer | Anton Babushkin <anton.babushkin@me.com> | 2014-01-27 12:09:23 +0100 |
commit | ad51e0a08abcd7c9cd1d018f2bcaae3055b7c18e (patch) | |
tree | 2aad7aae258bd3bde5c5d55fd5cb7cb647c8bf6f /src/modules/navigator/navigator_main.cpp | |
parent | 1e63e8d9321d685e3af09aa16b58c5985e878435 (diff) | |
download | px4-firmware-ad51e0a08abcd7c9cd1d018f2bcaae3055b7c18e.tar.gz px4-firmware-ad51e0a08abcd7c9cd1d018f2bcaae3055b7c18e.tar.bz2 px4-firmware-ad51e0a08abcd7c9cd1d018f2bcaae3055b7c18e.zip |
navigator: minor mavlink messages and comments fixes
Diffstat (limited to 'src/modules/navigator/navigator_main.cpp')
-rw-r--r-- | src/modules/navigator/navigator_main.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/navigator/navigator_main.cpp b/src/modules/navigator/navigator_main.cpp index e311c469f..dd471928e 100644 --- a/src/modules/navigator/navigator_main.cpp +++ b/src/modules/navigator/navigator_main.cpp @@ -1150,7 +1150,7 @@ Navigator::set_mission_item() } if (_do_takeoff) { - mavlink_log_info(_mavlink_fd, "[navigator] takeoff to %.1fm AMSL", _pos_sp_triplet.current.alt); + mavlink_log_info(_mavlink_fd, "[navigator] takeoff to %.1fm above home", _pos_sp_triplet.current.alt - _home_pos.alt); } else { if (onboard) { @@ -1435,7 +1435,7 @@ Navigator::check_mission_item_reached() float dist_xy = -1.0f; float dist_z = -1.0f; - /* current relative or AMSL altitude depending on mission item altitude_is_relative flag */ + /* calculate AMSL altitude for this waypoint */ float wp_alt_amsl = _mission_item.altitude; if (_mission_item.altitude_is_relative) |