use alternating 0 and 1 for dummy data
This commit is contained in:
parent
622b2e4f21
commit
88302ef7eb
@ -53,7 +53,11 @@ def pack_test_command(p: ServiceProviderParams):
|
||||
if data_size < 0 or data_size > 1024:
|
||||
print("Invalid data size")
|
||||
break
|
||||
dummy_data = bytes(data_size)
|
||||
dummy_data = bytearray()
|
||||
next_byte = True
|
||||
for i in range(data_size):
|
||||
dummy_data.append(int(next_byte))
|
||||
next_byte = not next_byte
|
||||
q.add_pus_tc(
|
||||
PusTelecommand(
|
||||
service=PusServices.S17_TEST, subservice=130, app_data=dummy_data
|
||||
|
Loading…
Reference in New Issue
Block a user