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

View File

@ -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();
}
/**