From d07f672b28080a25d7b53677d541367b88bcadd2 Mon Sep 17 00:00:00 2001 From: Peli de Halleux Date: Mon, 18 Dec 2017 09:17:19 -0800 Subject: [PATCH] fixing single motor set speed --- libs/core/output.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libs/core/output.ts b/libs/core/output.ts index 3453d9da..b9f9fa6f 100644 --- a/libs/core/output.ts +++ b/libs/core/output.ts @@ -242,6 +242,9 @@ namespace motors { const b = mkCmd(this._port, DAL.opOutputSpeed, 1) b.setNumber(NumberFormat.Int8LE, 2, speed) writePWM(b) + if (speed) { + writePWM(mkCmd(this._port, DAL.opOutputStart, 0)) + } } private __move(steps: boolean, stepsOrTime: number, speed: number) {