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"
![](https://docs.revrobotics.com/~gitbook/image?url=https%3A%2F%2F1359443677-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FUOOiQ4S2QcMWmVoSmeQ8%252Fuploads%252FH2cfrOH7dYFsGyj8PsxM%252Fmotorpower.png%3Falt%3Dmedia%26token%3D2d94e797-1ba3-46c0-af39-33ac8f800de3&width=768&dpr=4&quality=100&sign=6dd61799&sv=1)
When the OpMode is run the telemetry block will display the current power based on the joysticks movement. Give it a try!
Full Program
![](https://docs.revrobotics.com/~gitbook/image?url=https%3A%2F%2F1359443677-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FUOOiQ4S2QcMWmVoSmeQ8%252Fuploads%252FDeQ4G6tpGK3xFRwgUuGB%252Fmotorfull.png%3Falt%3Dmedia%26token%3Dda765ec4-949a-4a79-9173-29e91cb696fd&width=768&dpr=4&quality=100&sign=4a48c6c&sv=1)
Last updated