Skip to content

Commit

Permalink
remove unsed vars in gen_xtce
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanpdx committed Feb 5, 2024
1 parent 587b594 commit b354378
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions oresat_configs/scripts/gen_xtce.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,12 +174,6 @@ def write_xtce(config: OreSatConfig, dir_path: str = "."):
"oneStringValue": "1",
},
)
unit_set = ET.SubElement(para_type, "UnitSet")
dt_len = DT_LEN[obj.data_type] # Length of the data type
# Integer-type encoding for Integers
int_dt_enc = ET.SubElement(
para_type, "IntegerDataEncoding", attrib={"sizeInBits": str(dt_len)}
)
elif obj.data_type in canopen.objectdictionary.UNSIGNED_TYPES and obj.value_descriptions:
para_type = ET.SubElement(
tm_meta_para,
Expand All @@ -188,12 +182,6 @@ def write_xtce(config: OreSatConfig, dir_path: str = "."):
"name": name,
},
)
unit_set = ET.SubElement(para_type, "UnitSet")
dt_len = DT_LEN[obj.data_type] # Length of the data type
# Integer-type encoding for enums
int_dt_enc = ET.SubElement(
para_type, "IntegerDataEncoding", attrib={"sizeInBits": str(dt_len)}
)
enum_list = ET.SubElement(para_type, "EnumerationList")
for value, name in obj.value_descriptions.items():
ET.SubElement(
Expand Down

0 comments on commit b354378

Please sign in to comment.