Always use the motor slider control

This commit is contained in:
Sam El-Husseini 2018-01-10 10:00:48 -08:00
parent 4e4f5495da
commit aa8635c4e7
2 changed files with 1 additions and 10 deletions

View File

@ -96,11 +96,6 @@ namespace pxsim {
this.started = true;
}
isInput() {
// TODO: figure out if a motor is in an input or output state
return true;
}
setSpeedAsInput(speed: number) {
this.speed = speed;
}

View File

@ -232,11 +232,7 @@ namespace pxsim.visuals {
case NodeType.MediumMotor:
case NodeType.LargeMotor: {
const state = ev3board().getMotors()[port];
if (state.isInput()) {
view = new MotorSliderControl(this.element, this.defs, state, port);
} else {
view = new MotorReporterControl(this.element, this.defs, state, port);
}
view = new MotorSliderControl(this.element, this.defs, state, port);
break;
}
}