diff --git a/.idea/runConfigurations/ACU.xml b/.idea/runConfigurations/ACU.xml
index 6c94186..2898755 100644
--- a/.idea/runConfigurations/ACU.xml
+++ b/.idea/runConfigurations/ACU.xml
@@ -12,7 +12,7 @@
-
+
diff --git a/.idea/runConfigurations/Star_Tracker.xml b/.idea/runConfigurations/Star_Tracker.xml
index 937313e..bb2cf5e 100644
--- a/.idea/runConfigurations/Star_Tracker.xml
+++ b/.idea/runConfigurations/Star_Tracker.xml
@@ -12,7 +12,7 @@
-
+
diff --git a/pus_tc/star_tracker.py b/pus_tc/star_tracker.py
index cd634f4..8f09a4e 100644
--- a/pus_tc/star_tracker.py
+++ b/pus_tc/star_tracker.py
@@ -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
diff --git a/spacepackets b/spacepackets
index 464274a..0365df0 160000
--- a/spacepackets
+++ b/spacepackets
@@ -1 +1 @@
-Subproject commit 464274a91ce31a28e3493a05089fcdbe0bdf285b
+Subproject commit 0365df03ed2ff8f3def8496c76f578ed3a5984cc