Sending Data
Everything created with EasyStack shows up on its own. For the rest, the EasyDash class has a few static methods that you can call from any OpMode.
#Values and Text
EasyDash.put("distance", sensor.getDistance(DistanceUnit.CM));
EasyDash.put("state", "SHOOTING");A number is added to the Values list and can be plotted in the Graphs tab. Text is shown in the Values list.
#Pose
EasyDash.pose(x, y, headingRadians);
EasyDash.pose(pose2d);The robot is drawn on the Field panel and leaves a trail. Position is in inches and the heading is in radians.
#Markers
EasyDash.point("target", 24, -36);
EasyDash.point("goal", goalPose);
EasyDash.clearPoints();A marker is drawn with its name on the field. The dashboard keeps up to 32 markers. Sending a marker with the same name moves it.
#Robot Size
EasyDash.robotSize(18, 16);Length (along the heading) and width, in inches. Each value must be between 0 and 60, otherwise an IllegalArgumentException is thrown. The size you send replaces the size typed in the page.
#Log Messages
EasyDash.log("Shooter at speed");
EasyDash.warn("Battery is low");
EasyDash.error("Camera lost");Messages show up in the Console tab with a time and a level.
#Trajectories and Cameras
EasyDash.trajectory("to basket", trajectory);
EasyDash.camera("front", visionPortal);TrajectoryGenerator registers its trajectories for you. EasyCamera registers its stream when it starts. Use these calls only for your own trajectories and your own VisionPortal.
#Loop Time
EasyDash.tick() marks the end of a loop so the dashboard can measure the loop time. EasyOpMode calls it for you. In another kind of OpMode, call it once per loop.
#Your Own Devices
EasyDash.device("sensor", "frontLaser")
.value("distance", "cm", () -> lastDistance)
.text("state", () -> state.name())
.meta("note", "left side");Calling device(kind, name) again with the same kind and name returns the same device, so it is safe to call from a loop. Suppliers should return a value you already read, not read the hardware themselves.
Última atualização 2026-11-16