diff --git a/docs/reference/control/wait-micros.md b/docs/reference/control/wait-micros.md index 9e2a0ad3..49392452 100644 --- a/docs/reference/control/wait-micros.md +++ b/docs/reference/control/wait-micros.md @@ -2,16 +2,16 @@ ## Example #example -Use the a wait and the timer to generate a crazy number. +Use a wait and the timer to generate a number. ```blocks -let crazy = 0 +let something = 0 for (let i = 0; i < 100; i++) { control.waitMicros(100) - crazy = control.millis() - crazy += control.deviceSerialNumber() - if (crazy != 0) { - crazy = crazy / 1000000 + something = control.millis() + something += control.deviceSerialNumber() + if (something != 0) { + something = something / 1000000 } } ``` \ No newline at end of file diff --git a/sim/state/motornode.ts b/sim/state/motornode.ts index 6cc34bb7..eb026dd8 100644 --- a/sim/state/motornode.ts +++ b/sim/state/motornode.ts @@ -37,7 +37,7 @@ namespace pxsim { return Math.round(this.angle); } - // returns the slave motor if any + // returns the secondary motor if any getSynchedMotor() { return this._synchedMotor; }