From be809d97b97b67f3506b6e7b2ac105cbfc7d9068 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vojt=C4=9Bch=20Bo=C4=8Dek?= Date: Thu, 11 Jul 2024 10:08:52 +0200 Subject: [PATCH] fix: lekce cara code --- docs/robot/lekceCara/index.md | 2 -- 1 file changed, 2 deletions(-) diff --git a/docs/robot/lekceCara/index.md b/docs/robot/lekceCara/index.md index f5b752c1..b5bd0726 100644 --- a/docs/robot/lekceCara/index.md +++ b/docs/robot/lekceCara/index.md @@ -169,12 +169,10 @@ async function main() { // Čára je pod levým senzorem, doprava! robutek.leftMotor.setSpeed(10); robutek.rightMotor.setSpeed(100); - previousLeft = true; } else if (r < threshold) { // Čára je pod pravým senzorem, doleva! robutek.leftMotor.setSpeed(100); robutek.rightMotor.setSpeed(10); - previousLeft = false; } else { robutek.leftMotor.setSpeed(100); robutek.rightMotor.setSpeed(100);