|
|
|
@ -1151,15 +1151,18 @@ def program100(sock, ser, turn_on_relay_start, turn_off_relay_start, ex_turn_on_ |
|
|
|
OPEN_1_M = off_set_Time+OPEN_1 |
|
|
|
CLOSE_1_M1S=off_set_Time+CLOSE_1 |
|
|
|
CLOSE_1_M1E = off_set_Time + CLOSE_1-155 |
|
|
|
print(f"OPEN_1_M = {OPEN_1_M}, CLOSE_1_M1S = {CLOSE_1_M1S}, CLOSE_1_M1E = {CLOSE_1_M1E}") |
|
|
|
|
|
|
|
#2.喷枪2开关时间计算 |
|
|
|
OPEN_2=ex_turn_on_relay_start |
|
|
|
CLOSE_2 = ex_turn_off_relay_start |
|
|
|
OPEN_2_M = off_set_Time+OPEN_2 |
|
|
|
CLOSE_2_M2S = off_set_Time+CLOSE_2 |
|
|
|
CLOSE_2_M2E = off_set_Time + CLOSE_2- 155 |
|
|
|
print(f"OPEN_2_M = {OPEN_1_M}, CLOSE_2_M2S = {CLOSE_2_M2S}, CLOSE_2_M2E = {CLOSE_2_M2E}") |
|
|
|
|
|
|
|
sendCMD(sock, "transparent_transmission_init", {"lookahead": lookahead_time,"t": sample_time,"smoothness": 1,"response_enable": 0 }) |
|
|
|
cycles = 100 # 循环5次 |
|
|
|
cycles = 500 # 循环5次 |
|
|
|
|
|
|
|
for _ in range(cycles): |
|
|
|
for traj in trajectories: |
|
|
|
@ -1293,15 +1296,17 @@ def program101(sock, ser, turn_on_relay_start, turn_off_relay_start, ex_turn_on_ |
|
|
|
OPEN_1_M = off_set_Time+OPEN_1 |
|
|
|
CLOSE_1_M1S=off_set_Time+CLOSE_1 |
|
|
|
CLOSE_1_M1E = off_set_Time + CLOSE_1-155 |
|
|
|
print(f"OPEN_1_M = {OPEN_1_M}, CLOSE_1_M1S = {CLOSE_1_M1S}, CLOSE_1_M1E = {CLOSE_1_M1E}") |
|
|
|
#2.喷枪2开关时间计算 |
|
|
|
OPEN_2=ex_turn_on_relay_start |
|
|
|
CLOSE_2 = ex_turn_off_relay_start |
|
|
|
OPEN_2_M = off_set_Time+OPEN_2 |
|
|
|
CLOSE_2_M2S = off_set_Time+CLOSE_2 |
|
|
|
CLOSE_2_M2E = off_set_Time + CLOSE_2- 155 |
|
|
|
print(f"OPEN_2_M = {OPEN_1_M}, CLOSE_2_M2S = {CLOSE_2_M2S}, CLOSE_2_M2E = {CLOSE_2_M2E}") |
|
|
|
|
|
|
|
sendCMD(sock, "transparent_transmission_init", {"lookahead": lookahead_time,"t": sample_time,"smoothness": 1,"response_enable": 0 }) |
|
|
|
cycles = 100 # 循环5次s |
|
|
|
cycles = 500 # 循环5次s |
|
|
|
|
|
|
|
for _ in range(cycles): |
|
|
|
for traj in trajectories: |
|
|
|
|