Announcement

Collapse
No announcement yet.

Showing multiple lines in telemetry

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Showing multiple lines in telemetry

    Is there a way to show multiple lines of telemetry in Java? I've tried adding multiple telemetry.addData() commands in a row but all that did was show the last of the commands.

  • #2
    Hi!

    Try:

    Code:
    telemetry.addData("tag1", "<build your first telemetry message here>");
    telemetry.addData("tag2", "<build your second telemetry message here>");
    Martin Haeberli
    Mentor, FTC 7593, TigerBots

    Comment


    • #3
      Originally posted by FTC5421 View Post
      Is there a way to show multiple lines of telemetry in Java? I've tried adding multiple telemetry.addData() commands in a row but all that did was show the last of the commands.
      The telemetry object internally stores a mapping of keys (the first argument you pass in) to values. This means that one key cannot be associated with multiple values (at the very least, multiple String/Object values or multiple numeric values), so calling telemetry.addData() with the same key as used before will likely overwrite the first value.

      Comment

      Working...
      X