physical speed

This commit is contained in:
unknown 2024-09-17 17:35:10 +03:00
parent cace9ce902
commit 32439d2428
3 changed files with 1834 additions and 8 deletions

View File

@ -54,17 +54,17 @@ print('world', world_coord)
print('remote command count', send_data(make_query_data(['RemoteCmdLen'])))
line_speed = 100.0
line_smooth = 0
line_smooth = 9
line_tool = 1
global_speed = 100
physical_speed = 8
physical_speed = 50
# laser_id = 15
laser_id = 14
# filename = 'half-sphere-no-angle'
filename = 'half-sphere'
pass_size = 2
pass_size = 4
def make_world_step(type, p):
step = {
@ -119,14 +119,14 @@ with open(f'data/{filename}.nc.result', 'r') as fp:
send_data(make_command_data(['modifyGSPD', str(global_speed * 10)]))
send_data(make_addrcc_data([
# Включили физическую скорость
# {"oneshot":"0", "action":"51","isUse":"1","speed":str(physical_speed*1000)},
{"oneshot":"0", "action":"51","isUse":"1","speed":str(physical_speed*1000)},
# Поставили Y026 (laser id + 11) в TRUE -- ЛАЗЕР!!!!
{"oneshot":"0", "action":"200","type":"0","io_status":"1", "point":str(laser_id)},
], 1))
res_list = len(result) + 1
if res_list > 3000:
res_list = 3000
if res_list > 300:
res_list = 300
for i in range(pass_size, res_list, pass_size):
print(f"Отправили на устройство команды {i} ... {i + 1}")

File diff suppressed because it is too large Load Diff

View File

@ -16,7 +16,7 @@ for file in all_files:
result = []
step = None
for l in lines[31:-10:30]:
for l in lines[31:-10:5]:
data = l.strip().split(' ')
prep = {}
for item in data: