和算法联调显示规划路径 并且 显示实时路径成功

This commit is contained in:
mmc
2026-08-28 10:03:08 +08:00
parent 075352a33b
commit 2263b190f5
2 changed files with 57 additions and 37 deletions

View File

@@ -40,6 +40,7 @@ export default class DeviceController {
this.onHasControlRightChange = null;
this.onRequestControlStatusChange = null;
this.onPermissionRequest = null;
this.onRoutePost = null;
this.onIsFinished = null;
this.handleArrivedPoint = null;
@@ -358,6 +359,14 @@ export default class DeviceController {
});
break;
case 'route_post':
console.log('route post:', msg);
if (msg.deviceId) {
this.onRoutePost?.(msg.data);
}
break;
default:
break;
}