feat: update CAN integration and T2G seat firmware
This commit is contained in:
@@ -329,11 +329,11 @@ class ModelPlanAdapter:
|
||||
ambiguities: list[dict[str, str]],
|
||||
) -> dict[str, str] | None:
|
||||
target = request.get("target_scope")
|
||||
if target not in {"driver", "passenger"}:
|
||||
if target != "passenger":
|
||||
ambiguities.append(
|
||||
{
|
||||
"field": f"requests[{index}].target_scope",
|
||||
"question": "座椅姿态预设需要明确主驾或副驾。",
|
||||
"question": "当前座椅能力仅控制副驾,请将目标指定为 passenger。",
|
||||
}
|
||||
)
|
||||
return None
|
||||
@@ -379,11 +379,11 @@ class ModelPlanAdapter:
|
||||
vehicle_profile: VehicleProfile | None = None,
|
||||
) -> dict[str, Any] | None:
|
||||
target = request.get("target_scope")
|
||||
if target not in {"driver", "passenger"}:
|
||||
if target != "passenger":
|
||||
ambiguities.append(
|
||||
{
|
||||
"field": f"requests[{index}].target_scope",
|
||||
"question": "座椅执行适配器需要 driver 或 passenger 目标。",
|
||||
"question": "当前座椅能力仅控制副驾,请将目标指定为 passenger。",
|
||||
}
|
||||
)
|
||||
return None
|
||||
|
||||
Reference in New Issue
Block a user