diff --git a/sim/state/motornode.ts b/sim/state/motornode.ts index 9ac4298f..46693274 100644 --- a/sim/state/motornode.ts +++ b/sim/state/motornode.ts @@ -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; } diff --git a/sim/visuals/board.ts b/sim/visuals/board.ts index 9decc9c1..d3be5c8a 100644 --- a/sim/visuals/board.ts +++ b/sim/visuals/board.ts @@ -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; } }