EasyStack Docs

Sending Data

Esta página aún no está traducida. Se muestra la versión en inglés.

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

Java
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

Java
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

Java
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

Java
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

Java
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

Java
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

Java
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 actualización 2026-11-16

EasyStack - FTC Java library

This site records page views of visitors to understand how the documentation is used. Nothing is sold or shared with third parties.