Skip to content

Add telemetry data in "complete_listener_synch.java" class in BTN class #8

@DAlba-sudo

Description

@DAlba-sudo

What should be done?

Someone should add some telemetry that lets the user know what button is pressed. I have a couple of ideas as to how this can be done, but feel free to do your solution.

Constructor Based Telemetry (In the BTN class)

  • Create a new constructor with a 'name' : String parameter.
  • In this new constructor, do the same as the default constructor.
  • Create a new variable named string (might look something like this)
public BTN(String name, foo) {
    // some stuff happens here

    // introduce name
    this.name = name;
}
  • Create a method in the BTN class that can be called which will update the telemetry with the name of the button called
    • Easiest method would be use to the String.Format() method

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions