set output
This commit is contained in:
parent
4985757262
commit
4a3da619f7
|
@ -64,7 +64,7 @@ def make_world_step(type, p):
|
|||
"m6_p":"0", "m7_p":"0",})
|
||||
return step
|
||||
|
||||
k = 5
|
||||
k = 2
|
||||
data = [
|
||||
('line',(10*k, 10*k, 0)),
|
||||
('line',(0, 20*k, 0)),
|
||||
|
@ -73,11 +73,15 @@ data = [
|
|||
('line',(0, 0, 10*k)),
|
||||
('curve',(0, 10*k, 10*k, 20*k, 30*k, 10*k)),
|
||||
]
|
||||
send_data(make_addrcc_data(
|
||||
# [{"oneshot":"0", "action":"51","isUse":"1","speed":"1234"}]+
|
||||
[make_world_step(*p) for p in data]
|
||||
# [{"oneshot":"0", "action":"51","isUse":"0","speed":"1234"}]
|
||||
))
|
||||
# send_data(make_addrcc_data(
|
||||
# # [{"oneshot":"0", "action":"51","isUse":"1","speed":"1234"}]+
|
||||
# [make_world_step(*p) for p in data]
|
||||
# # [{"oneshot":"0", "action":"51","isUse":"0","speed":"1234"}]
|
||||
# ))
|
||||
# Изменили глобальную скорость на 11%
|
||||
send_data(make_command_data(['modifyGSPD', str(11 * 10)]))
|
||||
# Поставили Y014 в TRUE
|
||||
send_data(make_addrcc_data([{"oneshot":"0", "action":"200","type":"0","io_status":"1", "point":"4"}]))
|
||||
print('remote command count', send_data(make_query_data(['RemoteCmdLen'])))
|
||||
send_data(make_command_data(['actionSingleCycle']))
|
||||
# send_data(make_command_data(['actionStop']))
|
Loading…
Reference in New Issue