def on_to_position(self, speed, position, brake=True, block=True):
        """
        Rotate the motor at ``speed`` to ``position``

        ``speed`` can be a percentage or a :class:`ev3dev2.motor.SpeedValue`
        object, enabling use of other units.
        """
        speed = self._speed_native_units(speed)
        self.speed_sp = int(round(speed))
        self.position_sp = position
        self._set_brake(brake)
        self.run_to_abs_pos()

        if block:
            self.wait_until('running', timeout=WAIT_RUNNING_TIMEOUT)
            self.wait_until_not_moving()
def on_to_position ( self , speed , position , brake = True , block = True ) : speed = self . _speed_native_units ( speed ) self . speed_sp = int ( round ( speed ) ) self . position_sp = position self . _set_brake ( brake ) self . run_to_abs_pos ( ) if block : self . wait_until ( 'running' , timeout = WAIT_RUNNING_TIMEOUT ) self . wait_until_not_moving ( )
Rotate the motor at ``speed`` to ``position``

        ``speed`` can be a percentage or a :class:`ev3dev2.motor.SpeedValue`
        object, enabling use of other units.