Adds initial intermediate qt6 porting state
This commit is contained in:
11247 files changed
+1891537
No files matched your search
Executable
+39
@@ -0,0 +1,39 @@
|
||||
#!/usr/bin/python
|
||||
|
||||
import websocket
|
||||
import json
|
||||
import time
|
||||
|
||||
server_port = 33997
|
||||
bsm_id = 11001
|
||||
originator_id = 4711
|
||||
tas_code = 1
|
||||
number_of_flashes = 1
|
||||
|
||||
pause_flash = 1
|
||||
|
||||
ws = websocket.create_connection("ws://127.0.0.1:%s" % server_port)
|
||||
ws.recv()
|
||||
ws.recv()
|
||||
|
||||
|
||||
tele = { 'type' : 'BsmTriggerFlashlight', 'data': {'sensorId': bsm_id, 'numberOfFlashes': number_of_flashes, 'pauseBetweenFlashesSec': pause_flash} }
|
||||
ws.send(json.dumps(tele))
|
||||
|
||||
|
||||
tele = { 'type' : 'GetBsmConfiguration', 'data': {'sensorId': bsm_id} }
|
||||
ws.send(json.dumps(tele))
|
||||
|
||||
|
||||
tele = { 'type' : 'GetBsmBitTimeout', 'data': {'sensorId': bsm_id} }
|
||||
ws.send(json.dumps(tele))
|
||||
|
||||
|
||||
tele = { 'type' : 'GetBsmTechnicalStatus', 'data': {'sensorId': bsm_id} }
|
||||
ws.send(json.dumps(tele))
|
||||
|
||||
|
||||
tele = { 'type' : 'DebugSimulateBSMHit', 'data': {'effectTime': 0, 'sensorId': bsm_id, 'originatorId': originator_id, 'tasCodeDirect': tas_code, 'deposition1': 0, 'deposition2': 0} }
|
||||
ws.send(json.dumps(tele))
|
||||
|
||||
ws.close()
|
||||
Reference in new issue
Block a user