User Tools

Site Tools


traincontrol

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Last revision Both sides next revision
traincontrol [2021/10/15 00:38]
dpisuperadmin [Hardware and Wiring]
traincontrol [2021/10/15 02:45]
dpisuperadmin [Software]
Line 267: Line 267:
             switch_left = "l"             switch_left = "l"
             response = send_cmd(sock_cmd, b'dpset out4 outval d \n')             response = send_cmd(sock_cmd, b'dpset out4 outval d \n')
-            time.sleep(0.10)+            time.sleep(0.05)
             response = send_cmd(sock_cmd, b'dpset out4 outval f \n')             response = send_cmd(sock_cmd, b'dpset out4 outval f \n')
         elif (int(switches[0],16) & 8 == 0) and (switch_left != "s") :         elif (int(switches[0],16) & 8 == 0) and (switch_left != "s") :
             switch_left = "s"             switch_left = "s"
             response = send_cmd(sock_cmd, b'dpset out4 outval e \n')             response = send_cmd(sock_cmd, b'dpset out4 outval e \n')
-            time.sleep(0.10)+            time.sleep(0.05)
             response = send_cmd(sock_cmd, b'dpset out4 outval f \n')             response = send_cmd(sock_cmd, b'dpset out4 outval f \n')
         if (int(switches[0],16) & 4 == 4) and (switch_right != "r") :         if (int(switches[0],16) & 4 == 4) and (switch_right != "r") :
             switch_right = "r"             switch_right = "r"
             response = send_cmd(sock_cmd, b'dpset out4 outval b \n')             response = send_cmd(sock_cmd, b'dpset out4 outval b \n')
-            time.sleep(0.10)+            time.sleep(0.05)
             response = send_cmd(sock_cmd, b'dpset out4 outval f \n')             response = send_cmd(sock_cmd, b'dpset out4 outval f \n')
         elif (int(switches[0],16) & 4 == 0) and (switch_right != "s") :         elif (int(switches[0],16) & 4 == 0) and (switch_right != "s") :
             switch_right = "s"             switch_right = "s"
             response = send_cmd(sock_cmd, b'dpset out4 outval 7 \n')             response = send_cmd(sock_cmd, b'dpset out4 outval 7 \n')
-            time.sleep(0.10)+            time.sleep(0.05)
             response = send_cmd(sock_cmd, b'dpset out4 outval f \n')             response = send_cmd(sock_cmd, b'dpset out4 outval f \n')
         #print("switches : ", switch_left, switch_right)         #print("switches : ", switch_left, switch_right)
traincontrol.txt ยท Last modified: 2021/10/15 02:47 by dpisuperadmin