Skip to content

Commit

Permalink
Обновить pxt.json, lw.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
THEb0nny committed May 30, 2024
1 parent 060e140 commit b63af19
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
7 changes: 3 additions & 4 deletions lw.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

/**
Expand Down
2 changes: 1 addition & 1 deletion pxt.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit b63af19

Please sign in to comment.