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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds a line to the telemetry log.longAdds and returns the current timestamp to the packet.voidClears the telemetry log.Returns the field overlay canvas.voidStores a single key-value pair.voidStores 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.
-