From fba3d23786635e4388b4eaa83071480389f9a8b6 Mon Sep 17 00:00:00 2001 From: autocommitter Date: Sun, 17 Nov 2024 00:00:02 +0100 Subject: State at 2024-11-17 --- durt/nodes/(-2132,8,914).lua | 29 +++++++++++++++++------------ durt/nodes/(-2135,21,920).lua | 25 ------------------------- durt/nodes/(-2213,7,887).lua | 13 +++++++++++++ durt/nodes/(-2213,8,898).lua | 13 ------------- durt/nodes/(1718,17,4636).lua | 1 + durt/nodes/(1740,17,4636).lua | 1 + durt/nodes/(1751,17,4655).lua | 1 + durt/nodes/(1759,17,4623).lua | 1 + durt/nodes/(1780,18,4595).lua | 1 + 9 files changed, 35 insertions(+), 50 deletions(-) delete mode 100644 durt/nodes/(-2135,21,920).lua create mode 100644 durt/nodes/(-2213,7,887).lua delete mode 100644 durt/nodes/(-2213,8,898).lua create mode 100644 durt/nodes/(1718,17,4636).lua create mode 100644 durt/nodes/(1740,17,4636).lua create mode 100644 durt/nodes/(1751,17,4655).lua create mode 100644 durt/nodes/(1759,17,4623).lua create mode 100644 durt/nodes/(1780,18,4595).lua (limited to 'durt/nodes') 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,7,887).lua b/durt/nodes/(-2213,7,887).lua new file mode 100644 index 0000000..2a67431 --- /dev/null +++ b/durt/nodes/(-2213,7,887).lua @@ -0,0 +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;S3" + if event.msg == "send" then + atc_send(cmd) + return + end + if event.msg == "send_cpl" then + atc_send(cmd.."CplS0WRS3") + return + end +end \ No newline at end of file diff --git a/durt/nodes/(-2213,8,898).lua b/durt/nodes/(-2213,8,898).lua deleted file mode 100644 index 0be631f..0000000 --- a/durt/nodes/(-2213,8,898).lua +++ /dev/null @@ -1,13 +0,0 @@ -if event.type=="digiline" then - if event.channel ~= "trainctl" then return end - if not atc_id then return end - local cmd = "I+S0WR;S4" - if event.msg == "send" then - atc_send(cmd) - return - end - if event.msg == "send_cpl" then - atc_send(cmd.."CplWS0WRS4") - 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 -- cgit v1.2.3