added temperature units to pocket and to common types
This commit is contained in:
@@ -74,6 +74,28 @@ function types.new_zero_coordinate() return { x = 0, y = 0, z = 0 } end
|
||||
-- ENUMERATION TYPES --
|
||||
--#region
|
||||
|
||||
---@enum TEMP_SCALE
|
||||
types.TEMP_SCALE = {
|
||||
KELVIN = 1,
|
||||
CELSIUS = 2,
|
||||
FAHRENHEIT = 3,
|
||||
RANKINE = 4
|
||||
}
|
||||
|
||||
types.TEMP_SCALE_NAMES = {
|
||||
"Kelvin",
|
||||
"Celsius",
|
||||
"Fahrenheit",
|
||||
"Rankine"
|
||||
}
|
||||
|
||||
types.TEMP_SCALE_UNITS = {
|
||||
"K",
|
||||
"\xb0C",
|
||||
"\xb0F",
|
||||
"\xb0R"
|
||||
}
|
||||
|
||||
---@enum PANEL_LINK_STATE
|
||||
types.PANEL_LINK_STATE = {
|
||||
LINKED = 1,
|
||||
|
||||
@@ -22,7 +22,7 @@ local t_pack = table.pack
|
||||
local util = {}
|
||||
|
||||
-- scada-common version
|
||||
util.version = "1.3.0"
|
||||
util.version = "1.3.1"
|
||||
|
||||
util.TICK_TIME_S = 0.05
|
||||
util.TICK_TIME_MS = 50
|
||||
|
||||
Reference in New Issue
Block a user