From 815d438d86eb2716cf1e15ed96f56e51e710c46a Mon Sep 17 00:00:00 2001 From: Peli de Halleux Date: Wed, 29 Nov 2017 00:04:54 -0800 Subject: [PATCH] use speed when setting power --- libs/core/output.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libs/core/output.ts b/libs/core/output.ts index aec5ed2c..209e14d4 100644 --- a/libs/core/output.ts +++ b/libs/core/output.ts @@ -97,7 +97,8 @@ namespace motors { power(power: number) { power = Math.clamp(-100, 100, power >> 0); - const b = mkCmd(this.port, DAL.opOutputPower, 1) + // per LEGO: call it power, use speed + const b = mkCmd(this.port, DAL.opOutputSpeed, 1) b.setNumber(NumberFormat.Int8LE, 2, power) writePWM(b) if (power) {