fix polarity
This commit is contained in:
parent
367b1b0d1a
commit
217958aec3
@ -144,7 +144,7 @@ namespace motors {
|
|||||||
setReversed(reversed: boolean) {
|
setReversed(reversed: boolean) {
|
||||||
this.__init();
|
this.__init();
|
||||||
const b = mkCmd(this._port, DAL.opOutputPolarity, 1)
|
const b = mkCmd(this._port, DAL.opOutputPolarity, 1)
|
||||||
b.setNumber(NumberFormat.Int8LE, 2, reversed ? -1 : 1);
|
b.setNumber(NumberFormat.Int8LE, 2, reversed ? 0 : 1);
|
||||||
writePWM(b)
|
writePWM(b)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user