heater wip
This commit is contained in:
@ -14,6 +14,7 @@ class GomspaceDeviceActions:
|
||||
PARAM_GET = bytearray([0x0, 0x0, 0x0, 0x00])
|
||||
PARAM_SET = bytearray([0x0, 0x0, 0x0, 0xFF])
|
||||
WDT_RESET = bytearray([0x0, 0x0, 0x0, 0x9])
|
||||
REQUEST_HK_TABLE = bytearray([0x0, 0x0, 0x0, 0x10])
|
||||
|
||||
|
||||
class TableIds:
|
||||
@ -119,3 +120,14 @@ def pack_reboot_command(object_id: bytearray) -> bytearray:
|
||||
command = bytearray()
|
||||
command = object_id + action_id
|
||||
return command
|
||||
|
||||
|
||||
def pack_request_full_hk_table_command(object_id: bytearray) -> bytearray:
|
||||
""" Function to generate the command to request the full housekeeping table from a gomspace
|
||||
device.
|
||||
@param object_id The object id of the gomspace device handler.
|
||||
"""
|
||||
action_id = GomspaceDeviceActions.REQUEST_HK_TABLE
|
||||
command = bytearray()
|
||||
command = object_id + action_id
|
||||
return command
|
||||
|
Reference in New Issue
Block a user