Programming Motor Telemetry

Motors and Telemetry

Recall that telemetry is the process of collecting and transmitting data. There is a lot of useful information our motors could send back to us, but to start let's have it output the power based on the joystick's movement.

Similar to what we did for our servo program, let's add a block from the telemetry menu to the end of our loop:

From the DcMotor menu pullout the block . Drag the block and attach it to the number parameter on the telemetry blocks.

Change the key parameter to "Motor Power"

When the OpMode is run the telemetry block will display the current power based on the joysticks movement. Give it a try!

Full Program

Last updated