IntTopic

A handle on an integer topic, for values that fit in an Int. For larger ones use LongTopic.

Properties

Link copied to clipboard

Whether to log a value that is the same as the last one.

Link copied to clipboard

The full path of the topic, such as /Drive/leftVelocity

Link copied to clipboard

The topic's properties, such as its unit, which backends pass on to dashboards and log files.

Link copied to clipboard
var unit: String?

The unit of the topic's values, such as m or rad/s, or null if it has none. It is the TelemetryProperties.UNIT property, with the same timing rules as properties.

Functions

Link copied to clipboard
fun set(value: Int)

Logs value, stamped with the current time.

fun set(value: Int, timestampMicros: Long)

Logs value with a timestamp in microseconds since the registry's origin.

fun set(value: Int, at: ComparableTimeMark)

Logs value, stamped with at, a mark from the registry's time source.

Link copied to clipboard
open override fun toString(): String