.. rubric:: Measuring

.. blockimg:: pybricks_blockMotorMeasure_motor_angle

.. automethod:: angle

.. blockimg:: pybricks_blockMotorResetAngle

.. automethod:: reset_angle

.. blockimg:: pybricks_blockMotorMeasure_motor_speed

.. blockimg:: pybricks_blockMotorMeasure_motor_get_speed_average

.. automethod:: speed

.. blockimg:: pybricks_blockMotorMeasure_motor_load

.. automethod:: load

.. blockimg:: pybricks_blockMotorMeasure_motor_stalled

.. automethod:: stalled

.. rubric:: Stopping

.. blockimg:: pybricks_blockMotorStop_Motor_coast

.. automethod:: stop

.. blockimg:: pybricks_blockMotorStop_Motor_brake

.. automethod:: brake

.. blockimg:: pybricks_blockMotorStop_Motor_hold

.. automethod:: hold

.. rubric:: Running forever

.. blockimg:: pybricks_blockMotorRun_run

.. automethod:: run

.. blockimg:: pybricks_blockMotorDuty_Motor

.. automethod:: dc

.. rubric:: Running by a fixed amount

.. automethod:: run_time

.. blockimg:: pybricks_blockMotorRun_run_angle

.. automethod:: run_angle

.. blockimg:: pybricks_blockMotorRun_run_target

.. automethod:: run_target

.. blockimg:: pybricks_blockMotorRun_run_until_stalled

.. automethod:: run_until_stalled

.. blockimg:: pybricks_blockMotorTrack

.. automethod:: track_target

.. automethod:: done

.. rubric:: Motor settings

.. blockimg:: pybricks_blockMotorConfigure_motor_max_voltage

.. automethod:: settings

.. automethod:: close

.. rubric:: Control settings

.. pybricks-requirements:: pybricks-common-control

.. blockimg:: pybricks_blockMotorConfigure_motor_max_speed

.. blockimg:: pybricks_blockMotorConfigure_motor_acceleration

.. blockimg:: pybricks_blockMotorConfigure_motor_max_torque

.. autonestedmethod:: control.limits

.. pybricks-requirements:: pybricks-common-control

.. autonestedmethod:: control.pid

.. pybricks-requirements:: pybricks-common-control

.. blockimg:: pybricks_blockMotorConfigure_motor_target_tolerances

.. autonestedmethod:: control.target_tolerances

.. pybricks-requirements:: pybricks-common-control

.. autonestedmethod:: control.stall_tolerances

.. pybricks-requirements:: pybricks-common-control

.. attribute:: control.scale

    Number of degrees that the motor turns to complete one degree at the
    output of the gear train. This is the gear ratio determined from the
    ``gears`` argument when initializing the motor.

.. versionchanged:: 3.2

    The :meth:`done`, :meth:`stalled` and :meth:`load` methods have been
    moved.

.. pybricks-requirements:: pybricks-common-control

.. autonestedmethod:: model.state

.. pybricks-requirements:: pybricks-common-control

.. autonestedmethod:: model.settings
