mirror of
https://github.com/mrSkortch/MissionScriptingTools.git
synced 2025-08-15 10:47:23 +00:00
Replaced spaces with tabs. Removed trailing spaces.
This commit is contained in:
parent
5fdaa269fd
commit
3c9da5754b
26
mist.lua
26
mist.lua
@ -1512,10 +1512,10 @@ do -- the main scope
|
||||
end
|
||||
|
||||
--[[ required: az - radian
|
||||
required: dist - meters
|
||||
optional: alt - meters (set to false or nil if you don't want to use it).
|
||||
optional: metric - set true to get dist and alt in km and m.
|
||||
precision will always be nearest degree and NM or km.]]
|
||||
required: dist - meters
|
||||
optional: alt - meters (set to false or nil if you don't want to use it).
|
||||
optional: metric - set true to get dist and alt in km and m.
|
||||
precision will always be nearest degree and NM or km.]]
|
||||
function mist.tostringBR(az, dist, alt, metric)
|
||||
az = mist.utils.round(mist.utils.toDegree(az), 0)
|
||||
|
||||
@ -4783,7 +4783,7 @@ stopFlag
|
||||
mist.scheduleFunction(mist.flagFunc.group_alive_more_than, {{groupName = groupName, flag = flag, stopflag = stopflag, interval = interval, toggle = toggle, percent = percent}}, timer.getTime() + interval)
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
mist.flagFunc.mapobjsDeadPolygon = mist.flagFunc.mapobjs_dead_polygon
|
||||
mist.flagFunc.mapobjsDeadZones = mist.flagFunc.Mapobjs_dead_zones
|
||||
mist.flagFunc.unitsInZones = mist.flagFunc.units_in_zones
|
||||
@ -4834,10 +4834,10 @@ do -- mist.msg scope
|
||||
|
||||
local function mistdisplayV5()
|
||||
--[[thoughts to improve upon
|
||||
event handler based activeClients table.
|
||||
display messages only when there is an update
|
||||
possibly co-routine it.
|
||||
]]
|
||||
event handler based activeClients table.
|
||||
display messages only when there is an update
|
||||
possibly co-routine it.
|
||||
]]
|
||||
end
|
||||
|
||||
local function mistdisplayV4()
|
||||
@ -5512,11 +5512,9 @@ do -- mist.demos scope
|
||||
end
|
||||
|
||||
trigger.action.outText(string.format('%-25s', 'Heading: ') .. Heading .. ' degrees\n' .. string.format('%-25s', 'Roll: ') .. Roll .. ' degrees\n' .. string.format('%-25s', 'Pitch: ') .. Pitch
|
||||
.. ' degrees\n' .. string.format('%-25s', 'Yaw: ') .. Yaw .. ' degrees\n' .. string.format('%-25s', 'AoA: ') .. AoA .. ' degrees\n' .. string.format('%-25s', 'AoA plus Yaw: ') .. AoAplusYaw .. ' degrees\n' .. string.format('%-25s', 'Climb Angle: ') ..
|
||||
ClimbAngle .. ' degrees\n' .. string.format('%-25s', 'Absolute Velocity: ') .. absVel .. ' m/s\n' .. string.format('%-25s', 'Absolute Acceleration: ') .. unitAcc ..' m/s^2\n'
|
||||
.. string.format('%-25s', 'Axial G loading: ') .. axialGs .. ' g\n' .. string.format('%-25s', 'Transverse G loading: ') .. transGs .. ' g\n' .. string.format('%-25s', 'Absolute G loading: ') .. Gs .. ' g\n' .. string.format('%-25s', 'Energy: ') .. energy .. ' J/kg\n' .. string.format('%-25s', 'dE/dt: ') .. dEdt ..
|
||||
' J/(kg*s)', 1)
|
||||
|
||||
.. ' degrees\n' .. string.format('%-25s', 'Yaw: ') .. Yaw .. ' degrees\n' .. string.format('%-25s', 'AoA: ') .. AoA .. ' degrees\n' .. string.format('%-25s', 'AoA plus Yaw: ') .. AoAplusYaw .. ' degrees\n' .. string.format('%-25s', 'Climb Angle: ') ..
|
||||
ClimbAngle .. ' degrees\n' .. string.format('%-25s', 'Absolute Velocity: ') .. absVel .. ' m/s\n' .. string.format('%-25s', 'Absolute Acceleration: ') .. unitAcc ..' m/s^2\n'
|
||||
.. string.format('%-25s', 'Axial G loading: ') .. axialGs .. ' g\n' .. string.format('%-25s', 'Transverse G loading: ') .. transGs .. ' g\n' .. string.format('%-25s', 'Absolute G loading: ') .. Gs .. ' g\n' .. string.format('%-25s', 'Energy: ') .. energy .. ' J/kg\n' .. string.format('%-25s', 'dE/dt: ') .. dEdt ..' J/(kg*s)', 1)
|
||||
return unitVel, E, curTime
|
||||
end
|
||||
end
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user