接续上一轮:推进浏览器验证与M428配置收拢
结论:已完成浏览器侧真实加载验证,M428/M429/M430 的配置入口进一步从 LinuxCNC INI/HALFILE/REMAP 来源生成,native 与 source-link 验证通过。
This commit is contained in:
@@ -48,12 +48,55 @@ export type CncEvent = {
|
||||
reserved: number;
|
||||
};
|
||||
|
||||
export type CncRtcpOptions = {
|
||||
enabled: boolean;
|
||||
toolLength?: number;
|
||||
tool_length?: number;
|
||||
toolLengths?: Record<string, number>;
|
||||
tool_lengths?: Record<string, number>;
|
||||
};
|
||||
|
||||
export type CncXyzbcTrtOptions = {
|
||||
xRotPoint?: number;
|
||||
yRotPoint?: number;
|
||||
zRotPoint?: number;
|
||||
xOffset?: number;
|
||||
yOffset?: number;
|
||||
zOffset?: number;
|
||||
conventionalDirections?: boolean;
|
||||
x_rot_point?: number;
|
||||
y_rot_point?: number;
|
||||
z_rot_point?: number;
|
||||
x_offset?: number;
|
||||
y_offset?: number;
|
||||
z_offset?: number;
|
||||
conventional_directions?: boolean;
|
||||
};
|
||||
|
||||
export type CncParseOptions = {
|
||||
backend?: string;
|
||||
rtcp?: CncRtcpOptions;
|
||||
blockDelete?: boolean;
|
||||
block_delete?: boolean;
|
||||
switchkins?: string;
|
||||
remap?: string;
|
||||
kinematics?: string;
|
||||
trt?: "xyzbc" | "xyzac" | string;
|
||||
pivotLength?: number;
|
||||
pivot_length?: number;
|
||||
kinematicsType?: number;
|
||||
kinematics_type?: number;
|
||||
fiveaxisKinematicsType?: number;
|
||||
fiveaxis_kinematics_type?: number;
|
||||
xyzbcTrt?: CncXyzbcTrtOptions;
|
||||
};
|
||||
|
||||
export type SimulatorCore = {
|
||||
parse(
|
||||
program: string,
|
||||
dialect: CncDialect,
|
||||
options?: { backend?: string; rtcp?: { enabled: boolean; toolLength: number } },
|
||||
): Promise<CncEvent[]>;
|
||||
options?: CncParseOptions,
|
||||
): CncEvent[];
|
||||
};
|
||||
|
||||
export async function createSimulatorCore(): Promise<SimulatorCore> {
|
||||
|
||||
Reference in New Issue
Block a user