Skip to content

Commit

Permalink
Merge branch 'source' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
robamu committed Jul 12, 2021
2 parents 25c4e79 + fa6b816 commit c4ab098
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ platform = any

url = https://github.com/rmspacefish/tmtccmd
classifiers =
Development Status :: 4 - Beta
Development Status :: 5 - Production/Stable
Intended Audience :: Developers
License :: OSI Approved :: Apache Software License
Natural Language :: English
Expand Down
5 changes: 5 additions & 0 deletions src/tmtccmd/pus/service_20_parameter.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,3 +65,8 @@ class EcssPfcReal(enum.IntEnum):
DOUBLE_PRECISION_IEEE = 2
FLOAT_PRECISION_MIL_STD_4_OCTETS = 3
DOUBLE_PRECISION_MIL_STD_6_OCTETS = 4


class CustomSubservices(enum.IntEnum):
LOAD = 128,
DUMP = 129
7 changes: 3 additions & 4 deletions src/tmtccmd/tc/service_20_parameter.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ def pack_boolean_parameter_command(
object_id: bytearray, domain_id: int, unique_id: int, parameter: bool, ssc: int,
apid: int = -1
) -> Union[PusTelecommand, None]:
"""
Generic function to pack a telecommand to tweak a boolean parameter
"""Generic function to pack a telecommand to tweak a boolean parameter
:param object_id:
:param domain_id:
:param unique_id:
Expand Down Expand Up @@ -77,8 +76,8 @@ def pack_type_and_matrix_data(ptc: int, pfc: int, rows: int, columns: int) -> by

def pack_parameter_id(domain_id: int, unique_id: int, linear_index: int) -> bytearray:
"""Packs the Parameter ID (bytearray with 4 bytes) which is part of the service 20 packets.
The first byte of the parameter ID is the domain ID, the second byte is a unique ID and the last two bytes are a
linear index if a parameter is not loaded from index 0.
The first byte of the parameter ID is the domain ID, the second byte is a unique ID and the
last two bytes are a linear index if a parameter is not loaded from index 0.
:param domain_id: One byte domain ID
:param unique_id: One byte unique ID
:param linear_index: Two byte linear index.
Expand Down

0 comments on commit c4ab098

Please sign in to comment.