Always use the motor slider control
This commit is contained in:
parent
4e4f5495da
commit
aa8635c4e7
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user