mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-10-29 16:58:06 +00:00
Merge branch 'develop' into FF/Ops
This commit is contained in:
commit
81abe422de
@ -385,6 +385,23 @@ UTILS.BasicSerialize = function(s)
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
function UTILS.PrintTableToLog(table, indent)
|
||||||
|
if not table then
|
||||||
|
BASE:E("No table passed!")
|
||||||
|
return
|
||||||
|
end
|
||||||
|
if not indent then indent = 0 end
|
||||||
|
for k, v in pairs(table) do
|
||||||
|
if type(v) == "table" then
|
||||||
|
BASE:I(string.rep(" ", indent) .. tostring(k) .. " = {")
|
||||||
|
UTILS.PrintTableToLog(v, indent + 1)
|
||||||
|
BASE:I(string.rep(" ", indent) .. "}")
|
||||||
|
else
|
||||||
|
BASE:I(string.rep(" ", indent) .. tostring(k) .. " = " .. tostring(v))
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
|
||||||
UTILS.ToDegree = function(angle)
|
UTILS.ToDegree = function(angle)
|
||||||
return angle*180/math.pi
|
return angle*180/math.pi
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user