From c1aead1aa923d4b6ff22fbf77fd1bf6277a3f025 Mon Sep 17 00:00:00 2001 From: Dmitriy Antipov Date: Fri, 10 Sep 2021 00:11:06 +0300 Subject: [PATCH] fix invert motor angle metod (#999) --- libs/core/output.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/core/output.ts b/libs/core/output.ts index bb6c031a..e5371f13 100644 --- a/libs/core/output.ts +++ b/libs/core/output.ts @@ -597,7 +597,7 @@ namespace motors { //% help=motors/motor/angle angle(): number { this.init(); - return getMotorData(this._port).count; + return getMotorData(this._port).count * this.invertedFactor(); } /**