updated relative altitude in nav_wp

git-svn-id: https://arducopter.googlecode.com/svn/trunk@2284 f9c3cf11-9bcb-44bc-f272-b75c42450872
This commit is contained in:
jasonshort 2011-05-15 06:04:16 +00:00
parent 0554c42c08
commit 873d7bb5d5
1 changed files with 3 additions and 3 deletions

View File

@ -245,10 +245,10 @@ void do_nav_wp()
{
wp_control = WP_MODE;
// no longer needed as get_command_with_index takes care of this
// next_command.alt is a relative altitude!!!
// next_command.alt += home.alt;
if (next_command.options & WP_OPTION_ALT_RELATIVE) {
next_command.alt += home.alt;
}
set_next_WP(&next_command);
// this is our bitmask to verify we have met all conditions to move on