str write command
This commit is contained in:
parent
8a2350971d
commit
3a71176c56
@ -12,7 +12,7 @@
|
||||
<option name="ADD_CONTENT_ROOTS" value="true" />
|
||||
<option name="ADD_SOURCE_ROOTS" value="true" />
|
||||
<EXTENSION ID="PythonCoverageRunConfigurationExtension" runner="coverage.py" />
|
||||
<option name="SCRIPT_NAME" value="$PROJECT_DIR$/tmtc_client_cli.py" />
|
||||
<option name="SCRIPT_NAME" value="$PROJECT_DIR$/tmtccli.py" />
|
||||
<option name="PARAMETERS" value="-s acu -l -t 6" />
|
||||
<option name="SHOW_COMMAND_LINE" value="false" />
|
||||
<option name="EMULATE_TERMINAL" value="true" />
|
||||
|
@ -12,7 +12,7 @@
|
||||
<option name="ADD_CONTENT_ROOTS" value="true" />
|
||||
<option name="ADD_SOURCE_ROOTS" value="true" />
|
||||
<EXTENSION ID="PythonCoverageRunConfigurationExtension" runner="coverage.py" />
|
||||
<option name="SCRIPT_NAME" value="$PROJECT_DIR$/tmtc_client_cli.py" />
|
||||
<option name="SCRIPT_NAME" value="$PROJECT_DIR$/tmtccli.py" />
|
||||
<option name="PARAMETERS" value="-s star_tracker -l -t 6" />
|
||||
<option name="SHOW_COMMAND_LINE" value="false" />
|
||||
<option name="EMULATE_TERMINAL" value="true" />
|
||||
|
@ -54,6 +54,7 @@ class ImagePathDefs:
|
||||
downloadFile = "test_image.bin"
|
||||
downloadPath = "/mnt/sd0/startracker"
|
||||
jsonFile = "/mnt/sd0/startracker/test.json"
|
||||
flashFile = "/mnt/sd0/startracker/flash.bin"
|
||||
|
||||
|
||||
def pack_star_tracker_commands(object_id: bytearray, tc_queue: TcQueueT, op_code: str) -> TcQueueT:
|
||||
@ -254,8 +255,6 @@ def pack_star_tracker_commands(object_id: bytearray, tc_queue: TcQueueT, op_code
|
||||
def pack_write_command(object_id: bytearray) -> bytearray:
|
||||
region = 1
|
||||
address = 0
|
||||
length = 1024
|
||||
data = bytearray([1] * 1024)
|
||||
command = object_id + struct.pack('!I', StarTrackerActionIds.WRITE) + struct.pack('!B', region) + \
|
||||
struct.pack('I', address) + struct.pack('!H', length) + data
|
||||
struct.pack('!I', address) + bytearray(ImagePathDefs.flashFile, 'utf-8')
|
||||
return command
|
||||
|
@ -1 +1 @@
|
||||
Subproject commit 464274a91ce31a28e3493a05089fcdbe0bdf285b
|
||||
Subproject commit 0365df03ed2ff8f3def8496c76f578ed3a5984cc
|
Loading…
Reference in New Issue
Block a user