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();