summaryrefslogtreecommitdiff
path: root/durt/nodes
diff options
context:
space:
mode:
Diffstat (limited to 'durt/nodes')
-rw-r--r--durt/nodes/(-2132,8,914).lua29
-rw-r--r--durt/nodes/(-2135,21,920).lua25
-rw-r--r--durt/nodes/(-2213,7,887).lua (renamed from durt/nodes/(-2213,8,898).lua)4
-rw-r--r--durt/nodes/(1718,17,4636).lua1
-rw-r--r--durt/nodes/(1740,17,4636).lua1
-rw-r--r--durt/nodes/(1751,17,4655).lua1
-rw-r--r--durt/nodes/(1759,17,4623).lua1
-rw-r--r--durt/nodes/(1780,18,4595).lua1
8 files changed, 24 insertions, 39 deletions
diff --git a/durt/nodes/(-2132,8,914).lua b/durt/nodes/(-2132,8,914).lua
index ec8cd4a..5229dce 100644
--- a/durt/nodes/(-2132,8,914).lua
+++ b/durt/nodes/(-2132,8,914).lua
@@ -1,17 +1,22 @@
-local trigger = POS(-2130,21,925)
-if event.train then
- if getstate(trigger)=="off" then return end
- digiline_send("ars_set_query",true)
- return
-end
+local ch = {
+ get = "ars_set_query",
+ input = "ars_set",
+ indicator = "ars_indicator",
+}
-if event.digiline and event.channel=="ars_set" and atc_id then
- set_rc(event.msg)
- setstate(trigger,"off")
+if event.train then
+ digiline_send(ch.get, "GET")
return
end
-if event.digiline and event.channel=="ars_indicator" then
- setstate(trigger,event.msg)
- return
+if event.digiline then
+ if event.channel==ch.input then
+ if not atc_id then
+ digiline_send(ch.indicator, true)
+ return
+ end
+ set_rc(tostring(event.msg))
+ digiline_send(ch.indicator, false)
+ return
+ end
end \ No newline at end of file
diff --git a/durt/nodes/(-2135,21,920).lua b/durt/nodes/(-2135,21,920).lua
deleted file mode 100644
index 74dac88..0000000
--- a/durt/nodes/(-2135,21,920).lua
+++ /dev/null
@@ -1,25 +0,0 @@
-local ch = {
- output = "ars_manual_input",
- get = "ars_set_query",
- input = "ars_set",
- indicator = "ars_indicator",
- lcd = "lcd",
- debug = "debug"
-}
-
-if event.train then
- digiline_send(ch.get, "GET")
- return
-end
-
-if event.digiline then
- if event.channel==ch.input then
- if not atc_id then
- digiline_send(ch.indicator, true)
- return
- end
- set_rc(tostring(event.msg))
- digiline_send(ch.indicator, false)
- return
- end
-end \ No newline at end of file
diff --git a/durt/nodes/(-2213,8,898).lua b/durt/nodes/(-2213,7,887).lua
index 0be631f..2a67431 100644
--- a/durt/nodes/(-2213,8,898).lua
+++ b/durt/nodes/(-2213,7,887).lua
@@ -1,13 +1,13 @@
if event.type=="digiline" then
if event.channel ~= "trainctl" then return end
if not atc_id then return end
- local cmd = "I+S0WR;S4"
+ local cmd = "I+S0WR;S3"
if event.msg == "send" then
atc_send(cmd)
return
end
if event.msg == "send_cpl" then
- atc_send(cmd.."CplWS0WRS4")
+ atc_send(cmd.."CplS0WRS3")
return
end
end \ No newline at end of file
diff --git a/durt/nodes/(1718,17,4636).lua b/durt/nodes/(1718,17,4636).lua
new file mode 100644
index 0000000..7489acc
--- /dev/null
+++ b/durt/nodes/(1718,17,4636).lua
@@ -0,0 +1 @@
+-- \ No newline at end of file
diff --git a/durt/nodes/(1740,17,4636).lua b/durt/nodes/(1740,17,4636).lua
new file mode 100644
index 0000000..7489acc
--- /dev/null
+++ b/durt/nodes/(1740,17,4636).lua
@@ -0,0 +1 @@
+-- \ No newline at end of file
diff --git a/durt/nodes/(1751,17,4655).lua b/durt/nodes/(1751,17,4655).lua
new file mode 100644
index 0000000..7489acc
--- /dev/null
+++ b/durt/nodes/(1751,17,4655).lua
@@ -0,0 +1 @@
+-- \ No newline at end of file
diff --git a/durt/nodes/(1759,17,4623).lua b/durt/nodes/(1759,17,4623).lua
new file mode 100644
index 0000000..7489acc
--- /dev/null
+++ b/durt/nodes/(1759,17,4623).lua
@@ -0,0 +1 @@
+-- \ No newline at end of file
diff --git a/durt/nodes/(1780,18,4595).lua b/durt/nodes/(1780,18,4595).lua
new file mode 100644
index 0000000..7489acc
--- /dev/null
+++ b/durt/nodes/(1780,18,4595).lua
@@ -0,0 +1 @@
+-- \ No newline at end of file