feat: 完善 N7 智能座舱交互与控制链路

This commit is contained in:
vee
2026-09-07 15:34:59 +08:00
parent 32d179143f
commit c96970f068
100 changed files with 30088 additions and 1174 deletions
@@ -384,6 +384,10 @@ class ModeProfile:
)
def public_dict(self) -> dict[str, Any]:
is_cyclic = self.timeline is not None or any(
operation.capability == "seat.start_dynamic_mode"
for operation in self.operations
)
result = {
"id": self.id,
"name": self.name,
@@ -396,7 +400,7 @@ class ModeProfile:
"common": self.common,
"vehicle_ids": list(self.vehicle_ids),
},
"behavior": "cyclic" if self.timeline is not None else "static",
"behavior": "cyclic" if is_cyclic else "static",
"origin": "user" if self.user_defined else "preset",
"deletable": self.user_defined,
"instruction": self.instruction,