Skip to content

Commit 175b35c

Browse files
committed
Remove IK enabled option from firmware builder
1 parent 337a3f5 commit 175b35c

4 files changed

Lines changed: 3 additions & 19 deletions

File tree

tools/firmware-builder/index.html

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1020,15 +1020,6 @@ <h3 class="text-2xl font-bold text-gray-900 mb-2">Inverse kinematics parameters<
10201020
</div>
10211021

10221022
<div class="max-w-xl mx-auto space-y-6">
1023-
<!-- IK Enable -->
1024-
<label class="flex items-center justify-between p-4 border border-gray-200 rounded-lg cursor-pointer hover:border-primary">
1025-
<div>
1026-
<span class="font-medium text-gray-900">Enable IK by default</span>
1027-
<p class="text-sm text-gray-500">Inverse kinematics enabled on startup (G43.4)</p>
1028-
</div>
1029-
<input type="checkbox" id="ikEnabled" class="w-5 h-5 text-primary rounded">
1030-
</label>
1031-
10321023
<div class="section-divider">
10331024
<span>Axis homing positions</span>
10341025
</div>

tools/firmware-builder/js/app.js

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,6 @@ const wizardState = {
9797
invertE: false,
9898

9999
// Step 6: Kinematics
100-
ikEnabled: false,
101100
ikLC: 2.30,
102101
ikLB: 52.87,
103102
cHomePos: 0, // C axis coordinate at home switch
@@ -228,8 +227,7 @@ function setupInputListeners() {
228227
{ id: 'invertZ', key: 'invertZ' },
229228
{ id: 'invertC', key: 'invertC' },
230229
{ id: 'invertB', key: 'invertB' },
231-
{ id: 'invertE', key: 'invertE' },
232-
{ id: 'ikEnabled', key: 'ikEnabled' }
230+
{ id: 'invertE', key: 'invertE' }
233231
];
234232

235233
checkboxInputs.forEach(({ id, key }) => {
@@ -569,8 +567,7 @@ function generateConfigSummary() {
569567
{ label: 'Z height', value: `${config.zMaxPos} mm` },
570568
{ label: 'Display', value: formatDisplayName(config.display) },
571569
{ label: 'IK parameters', value: `LC=${config.ikLC}, LB=${config.ikLB}` },
572-
{ label: 'Axis limits', value: `C home=${config.cHomePos}°, B=±${config.bRange}°` },
573-
{ label: 'IK default', value: config.ikEnabled ? 'Enabled' : 'Disabled' }
570+
{ label: 'Axis limits', value: `C home=${config.cHomePos}°, B=±${config.bRange}°` }
574571
];
575572

576573
container.innerHTML = summaryItems.map(item => `
@@ -773,7 +770,6 @@ async function buildFirmware() {
773770
invertB: config.invertB,
774771
invertE: config.invertE,
775772
// IK parameters
776-
ikEnabled: config.ikEnabled,
777773
ikLC: config.ikLC,
778774
ikLB: config.ikLB,
779775
cHomePos: config.cHomePos,
@@ -1117,7 +1113,6 @@ function applyImportedConfig(config) {
11171113
});
11181114

11191115
// === IK Parameters ===
1120-
document.getElementById('ikEnabled').checked = config.ikEnabled;
11211116
document.getElementById('ikLC').value = config.ikLC;
11221117
document.getElementById('ikLB').value = config.ikLB;
11231118
document.getElementById('segmentsPerSecond').value = config.segmentsPerSecond;

tools/firmware-builder/js/config-generator.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ const ConfigGenerator = {
110110
lines.push(`#define DEFAULT_ROTATIONAL_JOINT_OFFSET_Y ${config.ikLC} // LC`);
111111
lines.push(`#define DEFAULT_ROTATIONAL_JOINT_OFFSET_Z ${config.ikLB} // LB`);
112112
lines.push(`#define DEFAULT_SEGMENTS_PER_SECOND ${config.segmentsPerSecond}`);
113-
lines.push(`#define DEFAULT_TOOL_CENTERPOINT_CONTROL ${config.ikEnabled ? 'true' : 'false'}`);
113+
lines.push('#define DEFAULT_TOOL_CENTERPOINT_CONTROL false // Enable via G43.4 in start g-code');
114114
lines.push('');
115115
lines.push('// === Axis positions ===');
116116
lines.push(`#define MANUAL_I_HOME_POS ${config.cHomePos} // C position after homing`);

tools/firmware-builder/worker/worker.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,6 @@ async function handleBuildRequest(request, env, corsHeaders) {
125125
invertB: body.invertB,
126126
invertE: body.invertE,
127127
// IK parameters
128-
ikEnabled: body.ikEnabled,
129128
ikLC: body.ikLC,
130129
ikLB: body.ikLB,
131130
cHomePos: body.cHomePos,
@@ -288,7 +287,6 @@ async function handleConfigRequest(buildId, env, corsHeaders) {
288287
invertB: buildData.invertB,
289288
invertE: buildData.invertE,
290289
// IK parameters
291-
ikEnabled: buildData.ikEnabled,
292290
ikLC: buildData.ikLC,
293291
ikLB: buildData.ikLB,
294292
cHomePos: buildData.cHomePos,

0 commit comments

Comments
 (0)