Fix tank and steer blocks in the simulator, making them ignore polarity just like labview (#713)

This commit is contained in:
Sam El-Husseini 2018-06-20 16:10:59 -07:00 committed by GitHub
parent 6513dbc901
commit 7974f36c31
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -30,7 +30,7 @@ namespace pxsim {
}
getSpeed() {
return this.speed * (this.polarity == 0 ? -1 : 1);
return this.speed * (!this._synchedMotor && this.polarity == 0 ? -1 : 1);
}
getAngle() {