diff --git a/sim/state/motornode.ts b/sim/state/motornode.ts index a5014e59..f69a9208 100644 --- a/sim/state/motornode.ts +++ b/sim/state/motornode.ts @@ -49,7 +49,7 @@ namespace pxsim { // new command TODO: values this.speedCmd = cmd; this.speedCmdValues = values; - this.speedCmdTacho = this.angle; + this.speedCmdTacho = this.tacho; this.speedCmdTime = pxsim.U.now(); delete this._synchedMotor; }