physical speed
This commit is contained in:
parent
cace9ce902
commit
32439d2428
|
@ -54,17 +54,17 @@ print('world', world_coord)
|
||||||
print('remote command count', send_data(make_query_data(['RemoteCmdLen'])))
|
print('remote command count', send_data(make_query_data(['RemoteCmdLen'])))
|
||||||
|
|
||||||
line_speed = 100.0
|
line_speed = 100.0
|
||||||
line_smooth = 0
|
line_smooth = 9
|
||||||
line_tool = 1
|
line_tool = 1
|
||||||
|
|
||||||
global_speed = 100
|
global_speed = 100
|
||||||
physical_speed = 8
|
physical_speed = 50
|
||||||
# laser_id = 15
|
# laser_id = 15
|
||||||
laser_id = 14
|
laser_id = 14
|
||||||
# filename = 'half-sphere-no-angle'
|
# filename = 'half-sphere-no-angle'
|
||||||
filename = 'half-sphere'
|
filename = 'half-sphere'
|
||||||
|
|
||||||
pass_size = 2
|
pass_size = 4
|
||||||
|
|
||||||
def make_world_step(type, p):
|
def make_world_step(type, p):
|
||||||
step = {
|
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_command_data(['modifyGSPD', str(global_speed * 10)]))
|
||||||
send_data(make_addrcc_data([
|
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 -- ЛАЗЕР!!!!
|
# Поставили Y026 (laser id + 11) в TRUE -- ЛАЗЕР!!!!
|
||||||
{"oneshot":"0", "action":"200","type":"0","io_status":"1", "point":str(laser_id)},
|
{"oneshot":"0", "action":"200","type":"0","io_status":"1", "point":str(laser_id)},
|
||||||
], 1))
|
], 1))
|
||||||
|
|
||||||
res_list = len(result) + 1
|
res_list = len(result) + 1
|
||||||
if res_list > 3000:
|
if res_list > 300:
|
||||||
res_list = 3000
|
res_list = 300
|
||||||
|
|
||||||
for i in range(pass_size, res_list, pass_size):
|
for i in range(pass_size, res_list, pass_size):
|
||||||
print(f"Отправили на устройство команды {i} ... {i + 1}")
|
print(f"Отправили на устройство команды {i} ... {i + 1}")
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -16,7 +16,7 @@ for file in all_files:
|
||||||
|
|
||||||
result = []
|
result = []
|
||||||
step = None
|
step = None
|
||||||
for l in lines[31:-10:30]:
|
for l in lines[31:-10:5]:
|
||||||
data = l.strip().split(' ')
|
data = l.strip().split(' ')
|
||||||
prep = {}
|
prep = {}
|
||||||
for item in data:
|
for item in data:
|
||||||
|
|
Loading…
Reference in New Issue