Skip to content

Commit

Permalink
fix: lekce cara code
Browse files Browse the repository at this point in the history
  • Loading branch information
Tasssadar committed Jul 11, 2024
1 parent b04ce29 commit be809d9
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions docs/robot/lekceCara/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit be809d9

Please sign in to comment.