diff --git a/docs/robot/lekce1/example-gridui/src/libs/robutek.ts b/docs/robot/lekce1/example-gridui/src/libs/robutek.ts index 308c3134..2bd019fe 100644 --- a/docs/robot/lekce1/example-gridui/src/libs/robutek.ts +++ b/docs/robot/lekce1/example-gridui/src/libs/robutek.ts @@ -177,6 +177,11 @@ export async function move(curve: number, duration?: motor.MoveDuration) { rightMotor.move({ distance: distance * rMot }) ]); } + } else { + await Promise.all([ + leftMotor.move(), + rightMotor.move() + ]); } } diff --git a/docs/robot/lekce1/example1/src/libs/robutek.ts b/docs/robot/lekce1/example1/src/libs/robutek.ts index 308c3134..2bd019fe 100644 --- a/docs/robot/lekce1/example1/src/libs/robutek.ts +++ b/docs/robot/lekce1/example1/src/libs/robutek.ts @@ -177,6 +177,11 @@ export async function move(curve: number, duration?: motor.MoveDuration) { rightMotor.move({ distance: distance * rMot }) ]); } + } else { + await Promise.all([ + leftMotor.move(), + rightMotor.move() + ]); } } diff --git a/docs/robot/lekce2/blank_project/src/libs/robutek.ts b/docs/robot/lekce2/blank_project/src/libs/robutek.ts index 308c3134..2bd019fe 100644 --- a/docs/robot/lekce2/blank_project/src/libs/robutek.ts +++ b/docs/robot/lekce2/blank_project/src/libs/robutek.ts @@ -177,6 +177,11 @@ export async function move(curve: number, duration?: motor.MoveDuration) { rightMotor.move({ distance: distance * rMot }) ]); } + } else { + await Promise.all([ + leftMotor.move(), + rightMotor.move() + ]); } } diff --git a/docs/robot/lekce3/project3/src/libs/robutek.ts b/docs/robot/lekce3/project3/src/libs/robutek.ts index 308c3134..2bd019fe 100644 --- a/docs/robot/lekce3/project3/src/libs/robutek.ts +++ b/docs/robot/lekce3/project3/src/libs/robutek.ts @@ -177,6 +177,11 @@ export async function move(curve: number, duration?: motor.MoveDuration) { rightMotor.move({ distance: distance * rMot }) ]); } + } else { + await Promise.all([ + leftMotor.move(), + rightMotor.move() + ]); } } diff --git a/docs/robot/lekce4/project4/src/libs/robutek.ts b/docs/robot/lekce4/project4/src/libs/robutek.ts index 308c3134..2bd019fe 100644 --- a/docs/robot/lekce4/project4/src/libs/robutek.ts +++ b/docs/robot/lekce4/project4/src/libs/robutek.ts @@ -177,6 +177,11 @@ export async function move(curve: number, duration?: motor.MoveDuration) { rightMotor.move({ distance: distance * rMot }) ]); } + } else { + await Promise.all([ + leftMotor.move(), + rightMotor.move() + ]); } } diff --git a/docs/robutekLibrary/Robutek-library/src/libs/robutek.ts b/docs/robutekLibrary/Robutek-library/src/libs/robutek.ts index 308c3134..2bd019fe 100644 --- a/docs/robutekLibrary/Robutek-library/src/libs/robutek.ts +++ b/docs/robutekLibrary/Robutek-library/src/libs/robutek.ts @@ -177,6 +177,11 @@ export async function move(curve: number, duration?: motor.MoveDuration) { rightMotor.move({ distance: distance * rMot }) ]); } + } else { + await Promise.all([ + leftMotor.move(), + rightMotor.move() + ]); } }