From 7974f36c3107d1abeb611eb3cdc937586180bf30 Mon Sep 17 00:00:00 2001 From: Sam El-Husseini <16690124+samelhusseini@users.noreply.github.com> Date: Wed, 20 Jun 2018 16:10:59 -0700 Subject: [PATCH] Fix tank and steer blocks in the simulator, making them ignore polarity just like labview (#713) --- sim/state/motornode.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sim/state/motornode.ts b/sim/state/motornode.ts index d7ac70a4..a5014e59 100644 --- a/sim/state/motornode.ts +++ b/sim/state/motornode.ts @@ -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() {