Skip to content

Commit 676c4b4

Browse files
committed
add setpoints screen
1 parent 1fc2343 commit 676c4b4

File tree

5 files changed

+68
-2
lines changed

5 files changed

+68
-2
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
VERSION = 0.9
2+
VERSION = 0.10
33

44
.PHONY: all
55
all: clean prepare luatmp lua

src/Horus/KISS/setpnt.lua

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
return {
2+
read = 0x52,
3+
write = 0x53,
4+
5+
postRead = function(values)
6+
local ret = {}
7+
ret[1] = values[1]
8+
return ret
9+
end,
10+
11+
preWrite = function(values)
12+
local ret = {}
13+
ret[1] = values[1]
14+
return ret
15+
end,
16+
17+
title = "Setpoints",
18+
text = {},
19+
fields = {
20+
{ t = "D Setpoint", x = 100, y = 96, sp = 60, i=1, min=0, max=100 }
21+
}
22+
}

src/X7/KISS/setpnt.lua

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
return {
2+
read = 0x52,
3+
write = 0x53,
4+
5+
postRead = function(values)
6+
local ret = {}
7+
ret[1] = values[1]
8+
return ret
9+
end,
10+
11+
preWrite = function(values)
12+
local ret = {}
13+
ret[1] = values[1]
14+
return ret
15+
end,
16+
17+
title = "Setpoints",
18+
text = {},
19+
fields = {
20+
{ t = "D Setpoint", x = 15, y = 27, sp = 70, i=1, min=0, max=100 }
21+
}
22+
}

src/X9/KISS/setpnt.lua

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
return {
2+
read = 0x52,
3+
write = 0x53,
4+
5+
postRead = function(values)
6+
local ret = {}
7+
ret[1] = values[1]
8+
return ret
9+
end,
10+
11+
preWrite = function(values)
12+
local ret = {}
13+
ret[1] = values[1]
14+
return ret
15+
end,
16+
17+
title = "Setpoints",
18+
text = {},
19+
fields = {
20+
{ t = "D Setpoint", x = 15, y = 25, sp = 30, i=1, min=0, max=100 }
21+
}
22+
}

src/common/KissUI.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ local lastRunTS = 0
2323
local gState = PAGE_DISPLAY
2424
ActivePage = nil
2525

26-
AllPages = { "pids", "rates", "tpa", "filters", "alarms", "vtx" }
26+
AllPages = { "pids", "rates", "tpa", "filters", "alarms", "vtx", "setpnt" }
2727

2828
local function formatKissFloat(v, d)
2929
local s = string.format("%0.4d", v);

0 commit comments

Comments
 (0)