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(telemetry: Telemetry, 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 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
open class MenuElement : TelemetryMenu.Element
An element of TelemetryMenu, representing a "page" in the overall menu display.
Link copied to clipboard
abstract class OptionElement : TelemetryMenu.Element
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(gamepad: Gamepad)
Call this from inside your loop to put the current menu state into telemetry, and process gamepad inputs for navigating the menu