Draft of Documentation

This commit is contained in:
chk
2026-04-28 19:15:04 +02:00
parent 356c424373
commit c212aa1cff
12 changed files with 8773 additions and 5 deletions

View File

@@ -374,7 +374,8 @@ async function calculate() {
const row242 = getRow(242, 3);
const row200 = getRow(200, 3);
const row204 = getRow(204, 3);
const row222 = getRow(222, 3);
const row222 = getRow(222, 3); // Ellbow
const row223 = getRow(223, 3); // Lower Arm
const angleYCandidates = [];
@@ -451,6 +452,7 @@ async function calculate() {
});
}
if (angleYCandidates.length > 0) {
buildFeatureFromCandidates(
result,
@@ -521,14 +523,15 @@ async function calculate() {
let x226 = 0;
let xCount = 0;
if(row222){
x226 += row222.x_mm * 5;
xCount += 5;
}
if (row226) {
x226 += row226.x_mm * 5;
xCount += 5;
}
if(row222){
/// 222 should have the same as x226
x226 += row222.x_mm * 5;
xCount += 5;
}
if (row229) {
x226 += row229.x_mm + 90;
xCount += 1;
@@ -618,6 +621,27 @@ async function calculate() {
}
}
}
// Ellbow-Rotation wenn X Position OK und 223 oder so bekannt ist.
if(row223 && xCount > 2){
// unterarm-roll => a aus der position von 223
dx = row223.x_mm - x226;
// aus der X Position kann der Unterarm-Winkel (a) berechnet werden
const angleRad = Math.asin(dx / 35);
const angleDeg = 90 - angleRad * 180 / Math.PI;
addLog(result, `(xEllbowRotation = ${angleDeg.toFixed(2)}° = ${angleRad.toFixed(4)} rad ) aus x von 223 und Ellbogen x226`);
addCalculation(result, {
type: "elbowRotationAFromX223",
input: {
x223: row223.x_mm,
x226
},
output: {
angleRad, angleDeg
}
});
}
}
result.summary = {