mirror of https://github.com/ArduPilot/ardupilot
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:
parent
0554c42c08
commit
873d7bb5d5
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue