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
Inhibits calls to usePacket.
Link copied to clipboard
The radius of the robot for drawing in inches.
Link copied to clipboard
Increasing this reduction factor reduces the fineness of logged and previewed trajectories on the Dashboard and recorded to the FlightRecorder.
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 logLiveSchema(subsystems: Array<BunyipsSubsystem>)
Extracts the log schema from BunyipsSubsystem instances to attach to an FtcDashboard packet, allowing live view of data being saved to the log files.
Link copied to clipboard
open fun mergePackets(a: TelemetryPacket, b: TelemetryPacket): TelemetryPacket
Merges two TelemetryPacket instances.
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.