usePacket

open fun usePacket(@NonNull packetOperations: Consumer<TelemetryPacket>)

Obtain a reference to a dashboard packet through an active BunyipsOpMode or by creating a new packet to automatically send to FtcDashboard. Optionally allows packet synchronisation through USING_SYNCED_PACKETS and sendAndClearSyncedPackets.

Parameters

packetOperations

the operations to perform on the packet, this packet will be managed by this method or via the available DualTelemetry instance