Turn ratio field editor (#225)

* Turn ratio field editor (initial draft)

* Add field turn ratio editor

* Fix arrow rotation

* Fix left and right direction, remove unnecessary SVG circles.

* Update UI a little. add marker.

* updated math for turnratio angle

* slightly cuter

* cleanup

* consistent naming

* more cleanup

* fixing motor node issue

* updated package version
This commit is contained in:
Peli de Halleux
2018-01-09 22:05:26 -08:00
committed by GitHub
parent e51721303a
commit ce3383f1b7
7 changed files with 132 additions and 5 deletions

View File

@ -40,6 +40,10 @@ namespace pxsim {
}
setSpeedCmd(cmd: DAL, values: number[]) {
if (this.speedCmd != cmd ||
JSON.stringify(this.speedCmdValues) != JSON.stringify(values))
this.setChangedState();
// new command TODO: values
this.speedCmd = cmd;
this.speedCmdValues = values;
this.speedCmdTacho = this.angle;