From 36829020a560a8705025d6364830cb5d0921a02e Mon Sep 17 00:00:00 2001 From: Henrik Muehe Date: Thu, 30 Apr 2026 19:10:24 +0200 Subject: [PATCH] Settings: add W axis (auxcnc) panel Expose the aux.json fields under a new 'W Axis (auxcnc)' section in Settings: serial port/baud, mechanics (steps/mm, dir sign, soft limits, max feed), homing (direction, position, fast/slow seek, backoff, max travel, limit polarity) and the step profile (max/start rate, accel). The 'enabled' flag stays read-only in the UI; flipping the W axis on/off is still done via aux.json so a fresh install can't surprise the user with hardware that isn't there. Live status (offline / unhomed / homed at mm) is shown above the form. Saving PUTs the merged config to /api/aux/config/save, which writes aux.json and pushes the homing/step config to the ESP. --- .../src/components/SettingsView.svelte | 6 + .../src/components/WAxisSettings.svelte | 262 ++++++++++++++++++ 2 files changed, 268 insertions(+) create mode 100644 src/svelte-components/src/components/WAxisSettings.svelte diff --git a/src/svelte-components/src/components/SettingsView.svelte b/src/svelte-components/src/components/SettingsView.svelte index f7c295e..c2a32f6 100644 --- a/src/svelte-components/src/components/SettingsView.svelte +++ b/src/svelte-components/src/components/SettingsView.svelte @@ -2,6 +2,7 @@ import configTemplate from "../../../resources/config-template.json"; import ScreenRotationDialog from "$dialogs/ScreenRotationDialog.svelte"; import ConfigTemplatedInput from "./ConfigTemplatedInput.svelte"; + import WAxisSettings from "./WAxisSettings.svelte"; import SetTimeDialog from "$dialogs/SetTimeDialog.svelte"; import Button, { Label } from "@smui/button"; @@ -94,6 +95,11 @@ {/each} +

W Axis (auxcnc)

+
+ +
+

Path Accuracy

diff --git a/src/svelte-components/src/components/WAxisSettings.svelte b/src/svelte-components/src/components/WAxisSettings.svelte new file mode 100644 index 0000000..e5c4959 --- /dev/null +++ b/src/svelte-components/src/components/WAxisSettings.svelte @@ -0,0 +1,262 @@ + + +
+ {#if !cfg} +

Loading W axis configuration...

+ {:else} +
+ {#if status} + + Status: + {#if !status.enabled} + disabled + {:else if !status.present} + offline + {:else if status.homed} + homed at {status.pos_mm.toFixed(3)} mm + {:else} + connected, unhomed + {/if} + + {/if} +
+ +
+
+
+ + + +
+ +
+ + +
+ +
+ + +
+
+ +

Mechanics

+
+
+ + + +
+ +
+ + +
+ +
+ + + +
+ +
+ + + +
+ +
+ + + +
+
+ +

Homing

+
+
+ + +
+ +
+ + + +
+ +
+ + + +
+ +
+ + + +
+ +
+ + + +
+ +
+ + + +
+ +
+ + +
+
+ +

Step Profile

+
+
+ + + +
+ +
+ + + +
+ +
+ + + +
+
+ +
+ + {#if saveMessage} + {saveMessage} + {/if} +
+ +
+ Changes are written to aux.json. Homing rates and the + limit polarity are pushed to the ESP immediately; any + running motion is unaffected. Re-home the W axis after + changing direction, sign, or step settings. +
+
+ {/if} +
+ +