Support XYZAC and XYZBC in shared web machine UI
This commit is contained in:
@@ -123,7 +123,7 @@ export function xyzacGate(action, input = {}) {
|
||||
const offsets = xyzac.finite_offsets !== false;
|
||||
const pinVars = xyzac.hal_pin_vars === true;
|
||||
const net = xyzac.switchkins_net === true;
|
||||
const coordinates = xyzac.coordinates === "XYZAC" && xyzac.joint_count === 5;
|
||||
const coordinates = ["XYZAC", "XYZBC"].includes(String(xyzac.coordinates ?? "").toUpperCase()) && xyzac.joint_count === 5;
|
||||
if (action === "vismachClear") return Object.freeze({ action, enabled: true, reason: "axis_visual_only", visual_only: true, taskState: state.taskState, interpState: state.interpState });
|
||||
const common = idle && pinVars && net && offsets;
|
||||
const commonReason = state.taskState === "ESTOP" ? "xyzac_estop_active" : state.taskState !== "ON" ? "xyzac_machine_off" : !idle ? "xyzac_interp_not_idle" : !pinVars ? "xyzac_hal_pin_vars_missing" : !net ? "xyzac_switchkins_net_missing" : !offsets ? "xyzac_offsets_nonfinite" : "xyzac_switchkins_common_gate";
|
||||
|
||||
Reference in New Issue
Block a user