fixed platform not moving problem

This commit is contained in:
2026-09-23 09:52:45 +08:00
parent f1bec62ca4
commit b3279cc2a6
21 changed files with 1200 additions and 59 deletions
@@ -79,6 +79,16 @@ def test_the_default_preferences_file_matches_the_schema_shape():
assert key in schema, f"preferences.default.json has an unknown key: {key}"
def test_the_shipped_defaults_carry_the_controller_task_number():
"""Re-initialisation names a task; if this key is missing every re-init is wrong."""
from orisys_autocal.motion import DEFAULT_BAS_TASK
shipped = json.loads(
(LOCALES.parent / "preferences.default.json").read_text(encoding="utf-8")
)
assert shipped["bas_task"] == DEFAULT_BAS_TASK == 4
def _walk(node, prefix: str = ""):
for key, value in node.items():
path = f"{prefix}{key}"