feat(ft546): run shared dispatch kernel in shadow

This commit is contained in:
zgw
2026-08-14 15:40:31 +08:00
parent 08003407eb
commit 6864010832
22 changed files with 2346 additions and 8 deletions

View File

@@ -37,9 +37,23 @@ public final class Ft546SrgvCommandIntent {
this.routeVersion = routeVersion;
this.taskNo = taskNo;
this.taskType = taskType;
this.pathPoints = Collections.unmodifiableList(
new ArrayList<Integer>(Objects.requireNonNull(pathPoints,
"pathPoints")));
List<Integer> copiedPath = new ArrayList<Integer>(
Objects.requireNonNull(pathPoints, "pathPoints"));
if (copiedPath.size() < 2 || copiedPath.size() > 8) {
throw new IllegalArgumentException(
"legacy route must contain between 2 and 8 command points");
}
for (Integer point : copiedPath) {
if (point == null || point.intValue() <= 0) {
throw new IllegalArgumentException(
"route node must be positive");
}
if (point.intValue() > 999999) {
throw new IllegalArgumentException(
"route node exceeds six digits");
}
}
this.pathPoints = Collections.unmodifiableList(copiedPath);
this.crossFloorTarget = crossFloorTarget;
this.twoStageNumber = twoStageNumber;
}