TelemetryMenu

open class TelemetryMenu

Utility for creating interactive menus through Telemetry. Source (extracted from FtcRobotController v9.2)

Author

OpenFTC, 2023

Since

4.0.0

Constructors

Link copied to clipboard
constructor(@NonNull telemetry: Telemetry, @NonNull root: TelemetryMenu.MenuElement)
TelemetryMenu constructor.

Types

Link copied to clipboard
A menu item backed by a boolean that can be adjusted by the user.
Link copied to clipboard
A menu item backed by a string that can be adjusted by the user.
Link copied to clipboard
abstract class Element
A generic child component that has a parent and a backing string.
Link copied to clipboard
A set of menu items that is backed by an Enum.
Link copied to clipboard
A menu item backed by a range of ints.
Link copied to clipboard
A menu element that has an attached functional interface hook for the current selected state.
Link copied to clipboard
An element of TelemetryMenu, representing a "page" in the overall menu display.
Link copied to clipboard
An option that has interactivity with the user.
Link copied to clipboard
A menu item that may be clicked by the user.
Link copied to clipboard
A menu item backed by a simple string.

Functions

Link copied to clipboard
open fun loop(@NonNull gamepad: Gamepad)
Call this from inside your loop to put the current menu state into telemetry, and process gamepad inputs for navigating the menu