motor slider fixes and fix motor output in vm

This commit is contained in:
Sam El-Husseini
2018-01-12 13:33:25 -08:00
parent dfe84471e8
commit 751ea1494b
4 changed files with 5 additions and 4 deletions

View File

@ -303,7 +303,7 @@ namespace motors {
}
private __setSpeed(speed: number) {
const b = mkCmd(this._port, this._regulated ? DAL.opOutputPower : DAL.opOutputSpeed, 1)
const b = mkCmd(this._port, this._regulated ? DAL.opOutputSpeed : DAL.opOutputPower, 1)
b.setNumber(NumberFormat.Int8LE, 2, speed)
writePWM(b)
if (speed) {