Commit 259a1bcb authored by DoinLakeFlyer's avatar DoinLakeFlyer

parent 4540a20b
...@@ -748,7 +748,7 @@ void SimpleMissionItem::_setDefaultsForCommand(void) ...@@ -748,7 +748,7 @@ void SimpleMissionItem::_setDefaultsForCommand(void)
// We default all acceptance radius to 0. This allows flight controller to be in control of // We default all acceptance radius to 0. This allows flight controller to be in control of
// accept radius. // accept radius.
_missionItem.setParam2(0); _missionItem.setParam2(0);
} else if (uiInfo->isLandCommand() || command == MAV_CMD_DO_SET_ROI_LOCATION) { } else if ((uiInfo && uiInfo->isLandCommand()) || command == MAV_CMD_DO_SET_ROI_LOCATION) {
_altitudeFact.setRawValue(0); _altitudeFact.setRawValue(0);
_missionItem.setParam7(0); _missionItem.setParam7(0);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment