fix invert motor angle metod (#999)

This commit is contained in:
Dmitriy Antipov 2021-09-10 00:11:06 +03:00 committed by GitHub
parent bd0cf05693
commit c1aead1aa9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -597,7 +597,7 @@ namespace motors {
//% help=motors/motor/angle //% help=motors/motor/angle
angle(): number { angle(): number {
this.init(); this.init();
return getMotorData(this._port).count; return getMotorData(this._port).count * this.invertedFactor();
} }
/** /**