From 3bfcc3b8d0d06ba836d532373e9c341e9042f986 Mon Sep 17 00:00:00 2001 From: Randy Mackay Date: Sat, 23 Mar 2013 22:05:30 +0900 Subject: [PATCH] AC_WPNav: replace get_target_alt with get_destination_alt --- libraries/AC_WPNav/AC_WPNav.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/libraries/AC_WPNav/AC_WPNav.h b/libraries/AC_WPNav/AC_WPNav.h index fa2ae871f5..1ddd141f6d 100644 --- a/libraries/AC_WPNav/AC_WPNav.h +++ b/libraries/AC_WPNav/AC_WPNav.h @@ -40,12 +40,6 @@ public: /// move_loiter_target - move destination using forward and right velocities in cm/s void move_loiter_target(int16_t vel_forward_cms, int16_t vel_right_cms, float dt); - /// get_target_alt - get target altitude ab0ve home in cm - float get_target_alt() { return _target.z; } - - /// set_target_alt - set target altitude above home in cm - void set_target_alt(float altitude_in_cm) { _target.z = altitude_in_cm; } - /// get_distance_to_target - get horizontal distance to loiter target in cm float get_distance_to_target(); @@ -68,6 +62,12 @@ public: /// advance_target_along_track - move target location along track from origin to destination void advance_target_along_track(float velocity_cms, float dt); + /// get_destination_alt - get target altitude above home in cm + float get_destination_alt() { return _destination.z; } + + /// set_destination_alt - set target altitude above home in cm + void set_destination_alt(float altitude_in_cm) { _destination.z = altitude_in_cm; } + /// get_distance_to_destination - get horizontal distance to destination in cm float get_distance_to_destination();