Callibration Mathe

This commit is contained in:
chk
2026-06-14 17:47:57 +02:00
parent fdbdb5f1e7
commit 273146c726
8 changed files with 409 additions and 611 deletions

View File

@@ -23,7 +23,7 @@
title="Erst Homing ausführen">
✅ An Roboter senden
</button>
<span id="homing-status" class="status-badge open">○ Warte</span>
<span id="homing-status" class="status-badge idle">○ Warte</span>
</div>
<!-- Fortschrittsbalken -->

View File

@@ -237,8 +237,9 @@ textarea {
background: #1e293b;
color: #94a3b8;
}
.status-badge.idle { color: #60a5fa; }
.status-badge.wip { color: #93c5fd; }
.status-badge.open { color: #f59e0b; }
.status-badge.wip { color: #60a5fa; }
.status-badge.done { color: #34d399; background: #064e3b; }
/* ===== HOMING FORTSCHRITTSBALKEN ===== */

View File

@@ -60,7 +60,7 @@
const n = cross.map(c => c / crossLen);
// Baryzentrische Gewichte → Umkreismittelpunkt (doc/04_y_achse.md)
// Baryzentrische Gewichte → Umkreismittelpunkt (doc/Kalibrierung.md → [4] Arm1, Verfahren B)
const a2 = dist2(P2, P3), b2 = dist2(P1, P3), c2 = dist2(P1, P2);
const w1 = a2 * (b2 + c2 - a2);
const w2 = b2 * (a2 + c2 - b2);