Telemetry
Outputting Text to the Driver Station
Last updated
Outputting Text to the Driver Station
Last updated
When programming in FTC, telemetry can be used to display messages on the driver station. It can be very useful as it can help easily identify issues or unusual readings with your robot.
A new telemetry line can be created using the addLine()
method which takes in a string as a parameter to display. It can be displayed above some data to categorize it.
Using the addData()
method will allow you to display a specific data value to the driver station along with a string caption.
Oftentimes, telemetry is used to display a variable related to a motor or servo to show information about how it is running. To do this, you should use addData() and use a variable for the second parameter.
After adding the telemetry line or data, it will not actually show up on the driver station unless you use telemetry.update()
after it to update.
Usually, teams use teleop once after all initialization code to show everything has been initialized, and have different telemetry show in loops during their opmodes, here is an example of telemetry in a Linear OpMode.
You can also change how often telemetry updates or refreshes on the driver station screen if you want to change it from the default.