fix invert motor angle metod (#999)
This commit is contained in:
parent
bd0cf05693
commit
c1aead1aa9
@ -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();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user