updated to new tmtc core

This commit is contained in:
2021-02-03 14:14:54 +01:00
parent be536aca49
commit a84d125b4b
12 changed files with 124 additions and 88 deletions

View File

@ -96,7 +96,6 @@ def pack_ping_command(object_id: bytearray, data: bytearray) -> bytearray:
data are simply copied by the device and then sent back.
"""
action_id = GomspaceDeviceActions.PING
command = bytearray()
command = object_id + action_id + data
return command
@ -107,7 +106,7 @@ def pack_gnd_wdt_reset_command(object_id: bytearray) -> bytearray:
"""
action_id = GomspaceDeviceActions.WDT_RESET
command = bytearray()
command = object_id + action_id
command += object_id + action_id
return command
@ -117,5 +116,5 @@ def pack_reboot_command(object_id: bytearray) -> bytearray:
"""
action_id = GomspaceDeviceActions.REBOOT
command = bytearray()
command = object_id + action_id
command += object_id + action_id
return command

View File

@ -13,4 +13,4 @@ class PDUConfigTable:
class PDUHkTable:
temperature = TableEntry(bytearray([0x00, 0x28]), TableEntry.uint16_size)
# Ground WDT value (remaining seconds until reboot)
wdt_gnd_left = TableEntry(bytearray([0x00, 0x80]), TableEntry.uint32_size)
wdt_gnd_left = TableEntry(bytearray([0x00, 0x80]), TableEntry.uint32_size)