smart Add
smartAdd is a static utility that will attempt to access a Telemetry object to add new data to either a DualTelemetry object affixed to a BunyipsOpMode, or a standard Telemetry out affixed to any OpMode derivative.
This provides components such as subsystems the ability to add telemetry regardless of whether a BunyipsOpMode or a standard OpMode is currently executing, while using Text utilities. This also allows non-DualTelemetry instances to work similarly with FtcDashboard routing and smart parsing.
Using smartAdd will result in caption caching if telemetry is set to not auto-clear. That is to say, if you were to call smartAdd updating the same caption in the same OpMode during a period where auto-clear is disabled, you will update a cached copy as adding a new object to telemetry is likely not desired.
Since
7.0.0