Class SwerveInputStreamTelemetry

java.lang.Object
yams.commands3.telemetry.SwerveInputStreamTelemetry
All Implemented Interfaces:
AutoCloseable

public class SwerveInputStreamTelemetry extends Object implements AutoCloseable
Telemetry and live tuning for a SwerveInputStream, created by SwerveInputStream.withTelemetry(String, TelemetryVerbosity) and published every time the stream is read.
  • TelemetryVerbosity.LOW: the current drive mode, under SwerveInputStream/<name>.
  • TelemetryVerbosity.MID: also the stream's configuration (deadband, scales, maximum velocities, cubing, alliance and robot relative), read-only.
  • TelemetryVerbosity.HIGH: also editable copies of the configuration under Tuning/SwerveInputStream/<name>, and a Live Tuning command there that applies them to the stream every loop while it runs.

While live tuning, values stay in sync both ways: a dashboard edit is applied to the stream, and a change made in code, e.g. a binding that changes the translation scale, is published to the dashboard. Invalid dashboard values are replaced with the stream's current value.