Word changes to reduce policheck hits (#992)
This commit is contained in:
parent
5289850351
commit
faae7133f5
@ -2,16 +2,16 @@
|
|||||||
|
|
||||||
## Example #example
|
## 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
|
```blocks
|
||||||
let crazy = 0
|
let something = 0
|
||||||
for (let i = 0; i < 100; i++) {
|
for (let i = 0; i < 100; i++) {
|
||||||
control.waitMicros(100)
|
control.waitMicros(100)
|
||||||
crazy = control.millis()
|
something = control.millis()
|
||||||
crazy += control.deviceSerialNumber()
|
something += control.deviceSerialNumber()
|
||||||
if (crazy != 0) {
|
if (something != 0) {
|
||||||
crazy = crazy / 1000000
|
something = something / 1000000
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
```
|
```
|
@ -37,7 +37,7 @@ namespace pxsim {
|
|||||||
return Math.round(this.angle);
|
return Math.round(this.angle);
|
||||||
}
|
}
|
||||||
|
|
||||||
// returns the slave motor if any
|
// returns the secondary motor if any
|
||||||
getSynchedMotor() {
|
getSynchedMotor() {
|
||||||
return this._synchedMotor;
|
return this._synchedMotor;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user