Class SmartMotorControllerTelemetry

java.lang.Object
yams.core.telemetry.SmartMotorControllerTelemetry

public class SmartMotorControllerTelemetry extends Object
Smart motor controller telemetry.

Publishes motor controller state including duty-cycle output voltage, stator/supply current, rotor/mechanism position and velocity, and motor temperature to NetworkTables so that tools such as SmartDashboard, Elastic, and Advantage Scope can consume the data in real time. Tunable fields (PID gains, setpoints, motion-profile limits) are additionally exposed on a separate Tuning table so they can be adjusted without redeploying code.

This class is managed internally by SmartMotorController. You do not normally instantiate it directly; instead call the methods on the motor controller itself:

Basic usage (default NetworkTable path)

// In robotInit() or subsystem constructor:
motor.setupTelemetry();   // publishes under Mechanisms/<motorName>

// In robotPeriodic() or subsystemPeriodic():
motor.updateTelemetry();

Custom NetworkTable path and telemetry config

NetworkTable dataTable   =
NetworkTableInstance.getDefault().getTable("Mechanisms").getSubTable("Shooter"); NetworkTable
tuningTable = NetworkTableInstance.getDefault().getTable("Tuning").getSubTable("Shooter");

motor.setupTelemetry(dataTable, tuningTable);

// In periodic:
motor.updateTelemetry();