mission_block: do relative alt correction for correct nav_cmd

This commit is contained in:
Nicolas de Palezieux 2018-01-24 17:59:53 +01:00 committed by Lorenz Meier
parent 0266ca9845
commit bc3577bd60
1 changed files with 1 additions and 1 deletions

View File

@ -452,7 +452,7 @@ MissionBlock::issue_command(const mission_item_s &item)
vcmd.param5 = item.params[4];
vcmd.param6 = item.params[5];
if (item.nav_cmd == NAV_CMD_DO_SET_ROI && item.altitude_is_relative) {
if (item.nav_cmd == NAV_CMD_DO_SET_ROI_LOCATION && item.altitude_is_relative) {
vcmd.param7 = item.params[6] + _navigator->get_home_position()->alt;
} else {