addData

open override fun addData(caption: String, format: String, vararg args: Any?): Telemetry.Item

Add data to the telemetry object for the Driver Station and FtcDashboard, with integrated formatting. This is an alias for add, with downcasting to a normal telemetry item. This will be automagically formatted for FtcDashboard.

Return

The telemetry item added to the Driver Station, null if the send failed from overflow

Parameters

caption

Caption before appended separator (dashboardCaptionValueAutoSeparator)

format

Format string to append after separator (dashboardCaptionValueAutoSeparator)

args

Objects to format into the format string via Text.format


open override fun addData(caption: String, value: Any?): Telemetry.Item

Add data to the telemetry object for the Driver Station and FtcDashboard, with integrated formatting. This is an alias for add, with downcasting to a normal telemetry item. This will be automagically formatted for FtcDashboard.

Return

The telemetry item added to the Driver Station, null if the send failed from overflow

Parameters

caption

Caption before appended separator (dashboardCaptionValueAutoSeparator)

value

Value to append after separator (dashboardCaptionValueAutoSeparator)


open override fun <T : Any> addData(caption: String, valueProducer: Func<T>): Telemetry.Item

Deprecated

Function providers are not used via DualTelemetry. Use a polling loop which the current value of the provider, or hook an add() call to telemetry actions.

Replace with

add(caption, valueProvider.value())

open override fun <T : Any> addData(caption: String, format: String, valueProducer: Func<T>): Telemetry.Item

Deprecated

Function providers are not used via DualTelemetry. Use a polling loop which the current value of the provider.

Replace with

add(caption, valueProvider.value())