From cc8ca5c54fc82376da9deaa55cef2a6a23393351 Mon Sep 17 00:00:00 2001 From: Maya Rajan Date: Fri, 1 Nov 2024 02:32:19 -0400 Subject: [PATCH] minor fix --- extensions/src/doodlebot/LineFollowing.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/extensions/src/doodlebot/LineFollowing.ts b/extensions/src/doodlebot/LineFollowing.ts index abd27dd93..02153f3e8 100644 --- a/extensions/src/doodlebot/LineFollowing.ts +++ b/extensions/src/doodlebot/LineFollowing.ts @@ -332,12 +332,12 @@ export function followLine(previousLine: Point[], pixels: Point[], delay: number worldDistance += distanceBetweenPoints(worldPoints[i], worldPoints[i + 1]); } - // Collect the error between guess and reality + // Collect the error between guess and world let procrustesResult: ProcrustesResult; if (previousCommands.length == 0) { procrustesResult = procrustes(segment1, segment2); } else if (worldDistance > 0.05) { - // TODO: check if line2 is much smaller than line 1, then use segment1 and segment2. Otherwise, use all the lines + // TODO: check if line 2 is much smaller than line 1, then use segment1 and segment2. Otherwise, use guessLine and worldPoints procrustesResult = procrustes(guessLine, worldPoints, 0.5); } else { // If the current frame doesn't contain that many points, just use previous guess