API Reference
Esta página aún no está traducida. Se muestra la versión en inglés.
Every public method of the EasyDash class, in one place. All of them are static.
#Data
put(name, double | String): a custom value. A number can be plotted.pose(x, y, heading),pose(Pose2d): the pose of the robot, in inches and radians.robotSize(length, width): the size of the robot in inches, from 0 to 60.point(name, x, y),point(name, Pose2d): a labelled marker on the field, up to 32.clearPoints(): removes all markers.log(message),warn(message),error(message): console messages.
#Devices and Registration
device(kind, name): a custom device with values and texts. Returns aDashDevice.subsystem(EasySubsystem): registers a subsystem.EasySubsystemBasedoes this for you.register(EasyMotor | EasyGamepad): registers one by hand. Done automatically when created.nameOf(device): the name of anEasyMotororEasyMotorGroup.
#Motion and Vision
trajectory(name, trajectory),trajectory(trajectory): draws a trajectory on the field.camera(name, CameraStreamSource): streams a camera orVisionPortal.
#Tuning
tunables(Class...): exposes static fields for live editing. See Tuning.
#Loop
tick(): marks a loop for the loop time.EasyOpModecalls it.
#Server
start(AssetSource),stop(): starts and stops the server. The Robot Controller app starts it for you.setEnabled(boolean),isEnabled(): turns the dashboard on or off and tells whether it is on.isRunning(): whether the server is running.getClientCount(): how many pages are connected.- PORT: the port of the server, 8090.
#DashDevice
The object returned by device(...). Every method returns the same device, so they can be chained:
value(label, unit, supplier): a number that is shown and can be plotted. The supplier returns a double.text(label, supplier): a text value. The supplier returns a String.meta(key, value): extra information that the page uses, for example type or wheels.getKind(),getName(): the identifiers of the device.
#Annotation
- @Tunable: marks a static field that the dashboard can edit. See Tuning.
Última actualización 2026-11-16