Dashboard

class Dashboard

Set of helper functions for drawing on the FtcDashboard canvas and operating various FtcDashboard functions.

Author

Lucas Bubner, 2024

Since

6.0.0

Properties

Link copied to clipboard
The radius of the robot for drawing in inches.
Link copied to clipboard
Enable to sync all packet operations to send a single packet at the time of sendAndClearSyncedPackets being called.

Functions

Link copied to clipboard
open fun drawPoseHistory(@NonNull canvas: Canvas, @NonNull poseHistory: List<Pose2d>)
Draw segments tracing out a pose history.
Link copied to clipboard
open fun drawRobot(@NonNull canvas: Canvas, @NonNull pose: Pose2d)
Draw a circle representing the robot and heading on the field.
Link copied to clipboard
open fun enableConfig(@NonNull clazz: Class<out Any>)
Send a class to the dashboard for configuration, much as if the class was annotated with Config.
Link copied to clipboard
open fun resetForOpMode()
Reset all static fields for an OpMode.
Link copied to clipboard
Call to dispatch a synced packet update following the enabling of synced packets via USING_SYNCED_PACKETS.
Link copied to clipboard
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.