diff --git a/lw.ts b/lw.ts index 81eba7f..99b1445 100644 --- a/lw.ts +++ b/lw.ts @@ -558,10 +558,9 @@ namespace motions { motions.ChassisControlCommand(U, out.pwrOut); // Команда моторам control.pauseUntilTime(currTime, motions.lineFollowLoopDt); // Ожидание выполнения цикла } - if (braking != Braking.NoStop) { - if (braking == Braking.Hold) chassis.stop(true); // Остановить моторы с удержанием - else chassis.stop(false); // Остановить моторы без удержания - } + if (braking == Braking.Hold) chassis.stop(true); // Break at hold + else if (braking == Braking.NoBreak) chassis.stop(false); // No hold break + else chassis.setSpeedsCommand(rampLineFollow2SensorMinEndSpeed, rampLineFollow2SensorMinEndSpeed); // Forward } /** diff --git a/pxt.json b/pxt.json index 9f7c09b..9a765dd 100644 --- a/pxt.json +++ b/pxt.json @@ -6,7 +6,7 @@ "ev3": "*", "automation": "github:microsoft/pxt-automation#v0.0.3", "nxt-light-sensor": "*", - "adv-motor-controllers": "github:theb0nny/makecode-ev3-advanced-motor-controllers#v1.3.5" + "adv-motor-controllers": "github:theb0nny/makecode-ev3-advanced-motor-controllers#v1.3.7" }, "files": [ "README.md",