Dual Telemetry
Telemetry implementation for BunyipsLib, integrating FtcDashboard and Driver Station calls in one object, while providing additional features useful for debugging and telemetry management. This is used internally by BunyipsOpMode to be accessible by the overridden telemetry
field.
Author
Lucas Bubner, 2024
Since
1.0.0-pre
Constructors
Properties
The color of the brackets in log messages, useful for distinguishing between different timer phases.
The time threshold at which the frequency segment will display yellow in the overhead telemetry to alert the user of slow looping times.
A string to display the current 'status' of the OpMode, used for overhead telemetry.
Additional information to display in the overhead telemetry message, as the line under the OpMode name above the timing and controller statistics. By default, this is an empty string.
A string that overrules the status message in the overhead telemetry, such as a warning or error message. Set to null to use the default status message.
Functions
Add data to the telemetry object for the Driver Station and FtcDashboard, with integrated formatting. Note that using a separator element (defined by dashboardCaptionValueAutoSeparator, default ": ") in your formatted string will split this to an item for FtcDashboard automagically, replicating what addDashboard would do.
Add any additional telemetry to the FtcDashboard telemetry packet.
Add data to the telemetry object for the Driver Station and FtcDashboard, with integrated formatting. This is an alias for add, with downcasting to a normal telemetry item. This will be automagically formatted for FtcDashboard.
Add a new line to the telemetry object. This is an alias for add("")
, to signify that a new line is intended.
Add a data to the telemetry object for the Driver Station and FtcDashboard, with integrated formatting.
Add any field overlay data to the FtcDashboard telemetry packet.
Get the current caption value separator.
Get the underlying packet used for user FtcDashboard telemetry in addDashboard and dashboardFieldOverlay.
Get the current transmission interval for the Driver Station. FtcDashboard interval can be checked with FtcDashboard.getInstance().getTelemetryTransmissionInterval()
.
Whether the telemetry object is set to auto-clear after each update for the Driver Station. FtcDashboard will always be false.
Remove an action from the telemetry object.
Remove a data item from the telemetry object, which will remove only from the Driver Station. This is an alias for remove.
Set the telemetry object to auto-clear after each update for the Driver Station.
Set the current caption value separator.
Set the current display format for the Driver Station. By default this is already set to HTML formatting, and it is recommended to leave this as-is.
The maximum number of telemetry logs that can be stored in the telemetry log. If the number of logs exceeds this limit, the oldest logs will be removed to make space for new logs to avoid crashing the Driver Station.
Set the transmission interval in milliseconds for the Driver Station and FtcDashboard.