Generalizing motorView for both medium and large motor views. Initial work towards synced motor views. Adding sync label for controller motor.

This commit is contained in:
Sam El-Husseini
2018-01-04 14:03:50 -08:00
parent 59ca9cf463
commit 5aef77ccc6
5 changed files with 67 additions and 49 deletions

View File

@ -88,7 +88,7 @@ namespace pxsim {
}
updateState(elapsed: number) {
console.log(`motor: ${elapsed}ms - ${this.speed}% - ${this.angle}> - ${this.tacho}|`)
//console.log(`motor: ${elapsed}ms - ${this.speed}% - ${this.angle}> - ${this.tacho}|`)
const interval = Math.min(20, elapsed);
let t = 0;
while (t < elapsed) {