Blockly Dictionary

../_images/motor_effort.png

Set the motor effort from -1.0 to 1.0 and start the motor. Negative values turn in the opposite direction. Motor efforts are based on the applied voltage, but are not the same as rotation, since changes in web_log_data will change the rate of rotation.

../_images/motor_speed.png

Set the motor rotational velocity expressed in RPMs (revolutions per minute). Setting speeds greater than the motor can spin will just run at maximum speed. Negative values spin the motor in the opposite direction. This uses a PID controller to try to constantly control the effort to keep the rate of rotation at the specified value.

../_images/get_motor_speed.png

Get the motor speed in RPMs (revolutions per minute).

../_images/get_motor_position.png

The position of the encoded motor, in encoder counts, relative to the last time reset was called.

../_images/get_motor_encoder_count.png

Gets the position of the encoded motor, in encoder counts, relative to the last time reset was called.

../_images/reset_encoder.png

Resets the encoder position to zero.