Skip to content
Snippets Groups Projects
Commit da9f4673 authored by ARMAR-7 User's avatar ARMAR-7 User
Browse files

allowing user to override modularConvertedValueName

parent 1d2daae8
No related branches found
No related tags found
1 merge request!2Changes for ARMAR-7
......@@ -24,9 +24,11 @@ class Calibration:
encoder_mount_possibilities: int = 16,
hard_limit_margin_degrees: Degree = 0,
soft_limit_margin_degrees: Degree = 0,
modularConvertedValueName: str = "absoluteEncoder"
):
self.name: str = name
self.method: str = method
self.modularConvertedValueName = modularConvertedValueName
self.measured_limits_ticks: Limits[Ticks]
if isinstance(measured_limits_ticks, tuple):
......@@ -153,10 +155,10 @@ class Calibration:
print("\n=================\n")
print(f"In the hardware configuration for '{self.name}', the entry for the ModularConvertedValue with name "
f"'absoluteEncoder' should look like this:\n")
f"'{self.modularConvertedValueName}' should look like this:\n")
is_inverted = f"{self.is_inverted}".lower()
print('<ModularConvertedValue '
'name="absoluteEncoder" '
f'name="{self.modularConvertedValueName}" '
f'zeroOffset="{self.zero_offset}" '
f'discontinuityOffset="{discontinuity_offset}" '
f'maxValue="{self.ticks_max_hr}" '
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment