Fix tank and steer blocks in the simulator, making them ignore polarity just like labview (#713)
This commit is contained in:
parent
6513dbc901
commit
7974f36c31
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user