Skip to content

Commit 9492720

Browse files
committed
AP_Scripting: fixed usage of terrain_alt in RockBlock.lua
1 parent 213bca9 commit 9492720

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

libraries/AP_Scripting/applets/RockBlock.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -289,6 +289,7 @@ local function MAVLinkProcessor()
289289
loc:alt(_mavresult.z * 100)
290290
if _mavresult.frame == 10 then -- MAV_FRAME_GLOBAL_TERRAIN_ALT
291291
loc:terrain_alt(true)
292+
loc:relative_alt(true)
292293
elseif _mavresult.frame == 3 then -- MAV_FRAME_GLOBAL_RELATIVE_ALT
293294
loc:relative_alt(true)
294295
end

0 commit comments

Comments
 (0)