fix: remove duplicate lAnkleX/rAnkleX declarations in pose-decoder

Stale code block from old intensity-based tracking was left behind,
re-declaring variables already defined by centroid-based tracking.

Co-Authored-By: claude-flow <ruv@ruv.net>
This commit is contained in:
ruv
2026-03-12 19:36:55 -04:00
parent 24a340bdaf
commit fe8232f453
3 changed files with 8 additions and 18 deletions
-10
View File
@@ -273,16 +273,6 @@ export class PoseDecoder {
const lHandOpen = Math.min(1, leftArmRaise * 0.5 + lArmSpread * 0.5);
const rHandOpen = Math.min(1, rightArmRaise * 0.5 + rArmSpread * 0.5);
// Left ankle/knee positions
const lAnkleX = cx - hipHalfW + legMotion.left * legSwing * 1.3;
const rAnkleX = cx + hipHalfW + legMotion.right * legSwing * 1.3;
const lKneeX = cx - hipHalfW + legMotion.left * legSwing;
const rKneeX = cx + hipHalfW + legMotion.right * legSwing;
// Neck (midpoint between shoulders)
const neckX = cx;
const neckY = shoulderY - P.headToShoulder * bodyH * 0.35;
const keypoints = [
// 0: nose
{ x: headX, y: headY + 0.01, confidence: 0.92 },