Class TelemetryPacket
java.lang.Object
com.acmerobotics.dashboard.telemetry.TelemetryPacket
Container for telemetry information. This class can be extended to support additional, custom
telemetry data.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds a line to the telemetry log.long
Adds and returns the current timestamp to the packet.void
Clears the telemetry log.Returns the field overlay canvas.void
Stores a single key-value pair.void
Stores all entries of the provided map.
-
Constructor Details
-
TelemetryPacket
public TelemetryPacket(boolean drawDefaultField) Creates a new telemetry packet. -
TelemetryPacket
public TelemetryPacket()
-
-
Method Details
-
put
Stores a single key-value pair.- Parameters:
key
-value
-
-
putAll
Stores all entries of the provided map.- Parameters:
map
-
-
addLine
Adds a line to the telemetry log.- Parameters:
line
-
-
clearLines
public void clearLines()Clears the telemetry log. -
addTimestamp
public long addTimestamp()Adds and returns the current timestamp to the packet. This is called automatically when the packet is sent (and any previous timestamp will be overwritten). -
fieldOverlay
Returns the field overlay canvas.
-