继续完成 web-rtcp-5axis-sim-plan
结论:完成 LinuxCNC kinematics WASM ABI 覆盖,并将 web-rtcp-5axis-sim-plan 的 RTCP frame/boundary adapter 接到 xyzac-trt kinematics SDK;Node、build、browser smoke 验证通过。
This commit is contained in:
19
web-rtcp-5axis-sim-plan/app/src/main.js
Normal file
19
web-rtcp-5axis-sim-plan/app/src/main.js
Normal file
@@ -0,0 +1,19 @@
|
||||
import { createSimulationStore } from "./state/store.js";
|
||||
import { mountGmoccapyShell } from "./ui/gmoccapy-shell.js";
|
||||
|
||||
const app = document.querySelector("#app");
|
||||
|
||||
if (!app) {
|
||||
throw new Error("Missing #app mount point");
|
||||
}
|
||||
|
||||
const store = createSimulationStore();
|
||||
const shell = mountGmoccapyShell(app, store);
|
||||
|
||||
window.webRtcp5AxisSimulation = {
|
||||
getState: store.getState,
|
||||
dispatch: store.dispatch,
|
||||
getRegions: shell.getRegions,
|
||||
};
|
||||
|
||||
store.dispatch({ type: "BOOT_READY" });
|
||||
Reference in New Issue
Block a user